Group data with pandas

0

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.

    
asked by anonymous 14.12.2018 / 16:51

0 answers