masa3141
12/9/2018 - 6:41 AM

Pandas table from dict

Pandas table

a = {'kazama':[0.2, 0.1], 'nagayama':[0.4,0.1]}
pd.DataFrame.from_dict(a, orient='index', columns=['ok', 'bad'])