Home > database >  Why does my dataframe shows X rows but my DataFrame.tail ends ina number much smaller
Why does my dataframe shows X rows but my DataFrame.tail ends ina number much smaller

Time:12-06

enter image description here

My dfg.shape shows 8529019 rows × 14 columns but the last row of my dfg view is 631225.

CodePudding user response:

Maybe the index of your dataframe is messed up. Try adding this line before your print the df: df = df.reset_index(drop=True)

  • Related