blob: 952a17d295a9e7ca85cbc84a3897b675041f6a53 [file] [log] [blame]
import pandas as pd
from hamilton.htypes import Collect
def statistics_by_city(statistics: Collect[dict]) -> pd.DataFrame:
"""Joins all data together"""
return pd.DataFrame.from_records(statistics).set_index("city")