image_output_1.png
import pandas as pd

df = pd.read_csv('../input/chinas-population-by-gender-and-urbanrural/Chinas Population En.csv')

df.columns = ['year', 'total', 'male', 'female', 'urban', 'rural']
df.sort_values(by='year', ignore_index=True, inplace=True)
df.head()