0
I would like to access the first element of the pandas dataframe.
import pandas as pd
data = [['2019', '0000', 'protocolo'], ['2020', '1111', 'pedido']]
df = pd.DataFrame(data)
Trying:
df = df.sort_values(by=['2019', '0000'])
Error:
raise Keyerror(key)
Keyerror: '2019'