pandas row from dict

Solutions on MaxInterview for pandas row from dict by the best coders in the world

showing results for - "pandas row from dict"
Maelyne
09 Aug 2018
1data = {'row_1': [3, 2, 1, 0], 'row_2': ['a', 'b', 'c', 'd']}
2pd.DataFrame.from_dict(data, orient='index')