일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 재귀
- gan
- 운영체제
- SQL
- Regression
- python3
- 프로그래머스
- kmu
- 머신 러닝
- 국민대학교
- Heap
- C++
- machine learning
- GIT
- 파이썬
- 회귀
- OS
- PANDAS
- LSTM
- 국민대
- instaloader
- programmers
- 스택
- 데이터베이스
- Stack
- 정렬
- Python
- googleapiclient
- db
- Seq2Seq
- Today
- Total
목록nan (2)
정리 노트
저번에는 pandas에서 NaN 값을 처리하는 방법을 배웠었습니다. (Pandas에서 NaN 처리하기: 2022.07.17 - [[TIL]국민대X프로그래머스 여름방학 인공지능 과정] - 10일 차 (2020/07/17)) 오늘은 numpy에서 NaN 값을 처리하는 방법을 배웠습니다. isnan 통해 NaN 값 처리해보기 isnan은 numpy에서 제공하는 함수로, 각 요소마다 nan값인지 아닌지의 boolean 값을 담은 ndarray를 반환합니다. import numpy as np a = np.array([1, 2, np.nan, 3, 4, np.nan, np.nan, 5]) print(np.isnan(a)) # [False False True False False True True False] 이를 ..
오늘은 pandas에서 두 dataframe을 하나로 합치는 merge와 NaN 값을 처리하는 방법에 대해 배웠습니다. 두 dataframe을 merge https://pandas.pydata.org/docs/reference/api/pandas.merge.html?highlight=merge#pandas.merge pandas.merge — pandas 1.4.3 documentation Merge DataFrame or named Series objects with a database-style join. A named Series object is treated as a DataFrame with a single named column. The join is done on columns or ind..