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
- PER
- PyQt
- MS-SQL
- GIT
- 유니티
- mssql
- sqlite
- javascript
- IOS
- 리눅스
- ubuntu
- PyQt5
- Unity
- 날짜
- port
- swift
- 함수
- flutter
- 라즈베리파이
- MySQL
- ASP
- tensorflow
- node.js
- urllib
- python
- Excel
- pandas
- 맛집
- 다이어트
- Linux
Archives
목록2025/03/11 (1)
아미(아름다운미소)
백터화
import pandas as pdimport numpy as npdef p_location_vectorized(df, p_location_col): # 벡터화된 연산을 위해 numpy의 where 함수를 사용 df['return_value'] = np.where( df[p_location_col].str.contains('@'), # '@'가 포함된 경우 df[p_location_col].str.split('@').str[-1], # '@' 이후의 부분을 반환 np.where( df[p_location_col].str.contains('\\$'), # '$'가 포함된 경우 df[p_location_col].st..
랭귀지/pandas
2025. 3. 11. 07:45