pandas 0.7.0 documentation

pandas.DataFrame.to_dict

DataFrame.to_dict()

Convert DataFrame to nested dictionary

Returns :result : dict like {column -> {index -> value}}