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)
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)