Posts

Showing posts from January, 2021
  plt.xlim() and plt.ylim() :  commands allow you to either zoom or expand the plot or to set the axis ranges to include important values (such as the origin).  numpy . reshape ( a , newshape , order = 'C' ) a is the array, and newshape can be an int or a tuple like (3,2,5) . When you are reshaping, the total number of elements can’t be altered, as explained above. If you are too lazy to calculate the what the remaining of this tuple should look like, you can just put -1 , and Numpy will calculate for you.  for fit_transform()--use this link  Another Link