LoslegenKostenlos loslegen

Combining time series

You recently read a paper showing positive correlation of game weather with player injuries. You decide to see if concussions and average temperatures for games follow the same pattern. Game temperatures have been stored in csv files and - of course - there is one file per team. You load files for Cleveland and Dallas to get an idea of how the seasons change for different teams.

temps_cle and temps_dal are show on your screen.

Diese Übung ist Teil des Kurses

Pandas Joins for Spreadsheet Users

Kurs anzeigen

Interaktive Übung

Versuche dich an dieser Übung, indem du diesen Beispielcode vervollständigst.

# Merge data and view first 10 rows
temps = pd.____(____, ____, on='Game_Date', 
                suffixes=[____, '_DAL'])
print(temps.head(10))
Code bearbeiten und ausführen