I have this code:
import pandas as pd
df = pd.read_csv('dados.csv')
ndf = df.set_index('Codigo').T
ndf
That returns:
WhatIwantedwasforhimto"flip" information from Codigo
to use as an index. In this case, one code per line, and one column per date.