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
- json schema
- docker
- vscode
- Java
- pandas
- RandomAccessFile
- vim
- 이미지
- FileChannel
- cli
- scaler
- Webpack
- Docker Compose
- scikit-learn
- PowerShell
- Ollama
- Vite
- json
- Typescript
- podman
- io
- 정렬
- DataFrameGroupBy
- curl
- tauri
- fit_transform
- Python
- CSS
- yaml
- UV
Archives
- Today
- Total
목록2026/08/27 (1)
워로디스
Pandas. apply() 정리 — 함수의 입력과 출력
1. 입력: 함수에 무엇이 들어오는가Series.apply()df["a"].apply(func)func에는 df["a"]의 값 하나씩 들어온다.def func(x): # x = 개별 값 return ...예:df["a"].apply(lambda x: x * 2)a가 다음과 같다면:102030함수는 개념적으로 다음처럼 호출된다.func(10)func(20)func(30)DataFrame.apply(axis=1)df.apply(func, axis=1)func에는 행 하나씩 들어온다.각 행의 타입은 Series이다.def func(row): # row = 한 행 전체 return ...예:df.apply( lambda row: row["a"] + row["b"], axis=1)..
Data Science/Pandas
2026. 8. 27. 22:36
