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
- value_counts
- 한빛미디어
- swarmplot
- lmplot
- seaborn
- Axis
- histplot
- matplotlib
- violinplot
- boxplot
- 클래스
- 혼공파
- STR
- stripplot
- catplot
- 혼공단
- 동적할당
- const
- LOC
- 열혈c++
- 참조자
- c++
- class
- bins
- df.t
- 구조체
- plot
- expand=true
- 포인터
- 혼공학습단
Archives
- Today
- Total
목록drop_duplicates (1)
yEverything
데이터 클리닝-유일성
import pandas as pddf = pd.read_csv('dust.csv', index_col=0)df.head()dust.csv읽기.미세먼지에 대한 데이터들이 들어있는 듯.df.index인덱스들 보기.보기 쉽지 않다.df.index.value_counts()세어서 편하게 보자.7월 31일이 두 개가 있다.df.loc['07월 31일']진짜 두 갠가?진짜네. 없애주자.df.drop_duplicates(inplace=True)drop_duplicates를 사용하면 중복된 값을 알아서 drop해준다.위에 보면 컬럼이 강원이랑 강원.1이 두 개가 있는 것을 알 수 있다.이 데이터들이 완전히 같다면 duplicates를 통해 없앨 수 있다.df= df.T.drop_duplicates().Tdf df.T..
Data_analysis/Google_colaboratory
2024. 5. 3. 21:03