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
- Linux
- MySQL
- ASP
- PyQt5
- Excel
- PER
- 맛집
- swift
- mssql
- python
- 날짜
- 리눅스
- port
- 라즈베리파이
- 유니티
- ubuntu
- tensorflow
- PyQt
- urllib
- 다이어트
- 함수
- GIT
- javascript
- IOS
- node.js
- MS-SQL
- sqlite
- flutter
- pandas
- Unity
Archives
목록2024/08/27 (1)
아미(아름다운미소)
특정열이 1보다큰경우 fillcount
import pandas as pdimport numpy as np# 샘플 데이터 생성data = { 'a': ['A'] * 6 + ['B'] * 6 + ['C'] * 6, 'b': [10, 15, 10, -20, 5, 10, 25, -30, 5, 20, 15, 10, 10, 15, 20, 25, 30, 35], 'c': [3, 3, 3, 3, 3, 3, -3, -3, -3, -3, -3, -3, 2, 2, 2, 2, 2, 2]}# DataFrame 생성df = pd.DataFrame(data)# d 컬럼과 e 컬럼 초기화df['d'] = np.nandf['e'] = np.random.randint(-5, 10, size=l..
랭귀지/pandas
2024. 8. 27. 08:45