Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- matplotlib
- catplot
- 동적할당
- class
- bins
- boxplot
- 한빛미디어
- STR
- 포인터
- expand=true
- violinplot
- 혼공단
- c++
- 혼공파
- 열혈c++
- lmplot
- const
- Axis
- plot
- 혼공학습단
- stripplot
- 참조자
- LOC
- 클래스
- histplot
- df.t
- seaborn
- 구조체
- swarmplot
- value_counts
Archives
- Today
- Total
목록Outer (1)
yEverything
데이터 합치기
import pandas as pdprice_df = pd.read_csv('vegetable_price.csv')quantity_df = pd.read_csv('vegetable_quantity.csv')price_dfquantity_df두 개의 csv파일 읽어서 각각 price_df와 quantity_df에 저장하기.각각 이런 데이터가 들어있다.pd.merge(price_df, quantity_df, on='Product')pandas의 merge를 사용해서 price와 quantity를 product 기준으로 합친다.price를 먼저 적었으므로 price에서 quantity의 값들이 합쳐졌다.pd.merge(price_df, quantity_df, on='Product', how='left')how..
Data_analysis/Google_colaboratory
2024. 5. 3. 20:35