0
dtype in pandas Dataframe
So I got the same result as needed in the excercise DS with Python - missing numbers, but dtypes on the bottom are different. I tried at least 4 ways of changing dtype and none of them worked. How to approach this ? Thank you
4 Antworten
+ 1
I put the float list in a pd.Series() and then worked with the Series. Maybe it makes a difference whether we use dataframe or series?
0
What dtype does it have?
Did you use a dataframe or a series?
0
It has float64 as a dtype. I tried with dataframe structure most of the times, inserting list or np.array when creating dataframe. I tried to get all floats before creating and after creating DF, but without success.