I am dealing with some pandas dataframes where all elements are of type Float64Index. Everything I try to convert those elements to a simple float fail.
I have tried pandas.to_numeric and astype(float).
Here is a reproducible dataframe that can be recreated from the following dict
{0: {44: 492.0, 45: 492.0},
1: {44: Float64Index([506.76], dtype='float64'),
45: Float64Index([506.76], dtype='float64')},
2: {44: Float64Index([516.8952], dtype='float64'),
45: Float64Index([516.8952], dtype='float64')},
3: {44: Float64Index([527.233104], dtype='float64'),
45: Float64Index([527.233104], dtype='float64')},
4: {44: Float64Index([537.77776608], dtype='float64'),
45: Float64Index([537.77776608], dtype='float64')}}
I would like to have dtypes return float for all the columns.
Float64Index.