[Pandas] DataFrame Join (concat, merge)
[Pandas] 데이터 프레임 합치기 연습¶ In [1]: import pandas as pd In [2]: df1 = pd.DataFrame({ 'id' : [1, 2, 3], 'customer_id' : [1, 2, 3], 'customer_name' : ['Robert', 'Peter', 'Dave'] }) df1 Out[2]: id customer_id customer_name 0 1 1 Robert 1 2 2 Peter 2 3 3 Dave In [3]: df2 = pd.DataFrame({ 'id' : [1, 2, 3], 'order_id' : [100, 200, 300], '..
[Pandas] 기초 이해
Pandas에서 Data 구조는 Series와 Dataframe으로 구분 ① Series : 1차원 데이터 , Index와 Value로 구성 ② Dataframe : 2차원 데이터, Index, Column, Value로 구성 ■ Series 데이터의 CRUD (Create, Read & Update, Delete) 1. Create (pd.Series로 Series 데이터 선언) import pandas as pd seriesdata = pd.Series([70, 60, 90], index = ['국어', '영어', '수학']) 2. Read & Update - Index로 Value 불러오기 seriesdata['국어'] seriesdata['영어'] - 새로운 값 할당 seriesdata['국어']..