Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

how to change Index's Values of a Dict with Python? My Index its Float i want it Integer

This is my current Dict:

{166.0: Int64Index([391, 490, 842, 1308, 4740, 4749], dtype='int64', name=u'Numcont'),
 178.0: Int64Index([10435], dtype='int64', name=u'Numcont'),
 263.0: Int64Index([800, 7432], dtype='int64', name=u'Numcont'),
 272.0: Int64Index([3822], dtype='int64', name=u'Numcont'),
 379.0: Int64Index([629, 2514], dtype='int64', name=u'Numcont')}

I would like to change my dictionary keys from Float to Integer values and as consecutive values.

How can it be performed?

Comments