cityImage.dict_to_df#
- cityImage.dict_to_df(list_dict, list_col)[source]#
It takes a list of dictionaries and creates from them a pandas DataFrame. Each dictionary becomes a Series, where keys are rows, values cell values. The column names are renamed trough a list of strings (list_col).
- Parameters:
list_dict (list of dict) – The list of dictionaries.
list_col (list of string) – The corresponding column names to assign to the series.
Returns –
---------- –
df (Pandas DataFrame) – The resulting DataFrame.