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

9th Feb 2021, 4:15 PM
Dino
Dino - avatar
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?
9th Feb 2021, 5:54 PM
Lisa
Lisa - avatar
0
What dtype does it have? Did you use a dataframe or a series?
9th Feb 2021, 5:09 PM
Lisa
Lisa - avatar
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.
9th Feb 2021, 5:44 PM
Dino
Dino - avatar