Jul-22-2019, 12:44 AM
(Jul-21-2019, 11:05 PM)scidam Wrote:(Jul-21-2019, 04:28 AM)ift38375 Wrote: df = pd.DataFrame(diSales, dtype=pd.Int32Dtype()).why ? What is use of this line ?This is about new Pandas feature, see docs here.
if you calldf.info()
, you find that the data frame is of integer type; Nevertheless,.mad
method, along with.mean
method, still automatically convert it to a float type. So, the result of.mad
execution has <float> type.
I think Df.info()is used for getting information about column-wise data type of dataframe but it is not used for convert whole float output into int. am i right ?