1. Data Frame 더하기: concat

Untitled

Untitled

Untitled

Untitled

Untitled

pd.concat([df1,df2], axis=1)-> 열로 두 df 더하기

2. Data Frame 더하기: merge

Untitled

df**.**merge("붙일 내용", how **=** "(방법)", on **=**"(기준 feature)")

Conditioning

ex) df[df['Genre'].isin(['Action'])] = df[(df['Genre'] **==** 'Action')]

Groupby

→ DF에서 각 장르별로 평균 관객 수를 구하고 싶다면 장르를 기준으로 해 groupby를 시행하여 평균을 구할 수 있다