일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 코테
- 컴파일러
- 프로그래밍
- python
- pandas
- 코딩테스트
- 구름톤
- 해시
- 해시테이블
- 파이썬
- 자료구조
- 컴파일언어
- NumPy
- hackerrank
- Compiler
- 해커랭크
- Oracle
- streamlit
- string 모듈
- 오라클
- 코딩
- 인터프리터언어
- sql
- BM25
- ML
- 프로그래머스
- Relation Extraction
- xla
- TF-IDF
- 판다스
- Today
- Total

https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.fillna.html pandas.DataFrame.fillna — pandas 1.4.2 documentation If method is specified, this is the maximum number of consecutive NaN values to forward/backward fill. In other words, if there is a gap with more than this number of consecutive NaNs, it will only be partially filled. If method is not specified, this is t pandas.pydata...

pandas.get_dummies(data, prefix=None, prefix_sep='_', dummy_na=False, columns=None, sparse=False, drop_first=False, dtype=None) data 적용할 데이터(리스트, 시리즈, 데이터프레임) prefix DataFrame 열 이름에 추가할 문자 접두사 prefix_sep 접두사를 추가하는 경우 사용할 구분 기호/구분자 dummy_na False일시 결측치는 무시 drop_first 첫 번째 카테고리는 제거하여 k개의 카테코리가 아니라 (k-1)개의 카테고리를 가져올지의 여부 예시 1) s = pd.Series(list('aaabbbcca')) pd.get_dummies(s) 예시 2) prefix, prefix_..

df.head() - 데이터프레임의 맨 앞에 있는 N개의 행을 반환한다. - 기본 값 5행 - 괄호안에 숫자를 넣어 몇 개를 가지고 올지 정해줄 수 있다. ex) head(3) - df.tail()은 head()와 반대로 맨 마지막에 있는 N개의 행을 반환한다. df.shape - 데이터프레임의 행과 열의 크기를 튜플 형태로 반환한다. - 반환 형태 : (행 개수, 열 개수) df.info - 총 데이터 건수와 데이터 타입, 컬럼별 NULL 건수를 알 수 있다. ex) 타이타닉호 탑승자 데이터프레임 살펴보기 titanic.info() RangeIndex: 891 entries, 0 to 890 Data columns (total 12 columns): # Column Non-Null Count Dtype..

1. seaborn의 내장 데이터셋 목록 확인하기 seaborn.get_dataset_names() : seaborn의 내장된 데이터 셋 목록을 확인하기 import seaborn as sns sns.get_dataset_names() #seaborn의 내장된 데이터 셋 목록을 확인하는 방법 ['anagrams', 'anscombe', 'attention', 'brain_networks', 'car_crashes', 'diamonds', 'dots', 'exercise', 'flights', 'fmri', 'gammas', 'geyser', 'iris', 'mpg', 'penguins', 'planets', 'taxis', 'tips', 'titanic'] 2. titanic 데이터셋을 불러와서 tita..