티스토리 뷰

공부

[python][pandas] merge

승가비 2022. 8. 6. 08:18
728x90
pd.merge(frame_1, frame_2, left_on='county_ID', right_on='countyid')
frame_1.merge(frame_2, left_on='county_ID', right_on='countyid')

https://stackoverflow.com/questions/20375561/joining-pandas-dataframes-by-column-names

 

Joining pandas DataFrames by Column names

I have two DataFrames with the following column names: frame_1: event_id, date, time, county_ID frame_2: countyid, state I would like to get a DataFrame with the following columns by joining (lef...

stackoverflow.com

 

728x90
댓글