0

I concatenated many dataframe in one dataframe and got result like

      | Total Capacity(TB)| Free Capacity(TB)|  Used(TB) |

Month |:------------------|:----------------:|:----------:
Aug-2021 | 3 | 1 | 2 | Jan-2022 | 3 | 1 | 2 | Nov-2021 | 3 | 1 | 2 | Oct-2021 | 3 | 1 | 2 | Sep-2021 | 3 | 1 | 2 |

I need dataframe with natural indexes like 0,1,2,3,4. when I run command df.index, I am getting indexes [Aug-2021, Dec-2021, Jan-2022,......] Any help appreciated.

  • Maybe just reset the index: `df.reset_index()` or `df.reset_index(drop=True)` if you don't need the Month – mozway Apr 07 '22 at 14:21

0 Answers0