스프레드시트 사용자를 위한 Pandas 조인
John Miller
Principal Data Scientist

pd.merge_ordered(cleveland, dallas, on='Game_Date',
suffixes=['_CLE', '_DAL'])

pd.merge_ordered(cleveland, dallas, on='Game_Date',
suffixes=['_CLE', '_DAL'])

pd.merge_ordered(tc2, td2, on='Game_Date',
suffixes=['_CLE', '_DAL'], fill_method='ffill')

pd.merge_ordered(tc2, td2, on='Game_Date',
suffixes=['_CLE', '_DAL'], fill_method='ffill')
pd.merge_asof(left_df, right_df,
direction='backward')
방향
"backward": 더 이른 값 중 가장 가까움
"forward": 같거나 더 늦은 값 중 가장 가까움
"nearest": 방향 무관, 가장 가까움

pd.merge_asof(temps, impacts,
left_on='Game_Date', right_index=True, direction='backward')
스프레드시트 사용자를 위한 Pandas 조인