import pandas as pd

df = pd.read_csv("commute_data_US_2023_full.csv")

state_commute_times = df.groupby("state")["commute_time"].mean()

print("Average commute times by state in 2023:")
for state, time in state_commute_times.items():
    print(f"{state}: {time:.1f} minutes")
