I have a data frame:
Date Cities Random_Number
Country
US 2020-01-01 LA 100
2020-01-03 LA 150
UK 2020-01-01 Ldn 125
2020-01-03 Birmingham 135
My desired data frame:
Date Cities Random_Number
Country
US 2020-01-01 LA 100
US 2020-01-03 LA 150
UK 2020-01-01 Ldn 125
UK 2020-01-03 Birmingham 135
My aim is to have empty index row to be filled. Many thanks.
df.reset_index()print (df.index)in firstDataFrame?