I have a list of floats that I would like to add to a dataframe as a new column. Each float has aproximately 9 o 10 decimals and I need all of them. The problem is that when I add the list to the dataframe as a new column I lose the decimals (only four of them remain).
The methods I used for adding the list were first pd.concat
and then just creating a new variable in the dataframe that is exactly the same as the list, but none of them worked.
my_list
[0.0,
0.0,
0.039403929840504,
0.000020304030304,
0.0,
0.00010000000000331966,
0.0,
0.0,
9.99999999891088e-05,
0.00010000000000331966,
0.0]
Thats the list and I would like to add it to a dataframe as a new column without losing any decimal points. By the way, the dataframe has the same number of rows that elements in the list.