pandas 0.7.3 documentation

pandas.DataFrame.to_dict

DataFrame.to_dict()

Convert DataFrame to nested dictionary

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