반응형
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 |
Tags
- Redshift
- 파이썬
- Tkinter
- google apps script
- Google Excel
- Github
- array
- GIT
- SQL
- string
- Mac
- gas
- Java
- dataframe
- Excel
- Python
- hive
- c#
- matplotlib
- numpy
- PANDAS
- Kotlin
- Google Spreadsheet
- django
- PySpark
- list
- Apache
- PostgreSQL
- math
Archives
- Today
- Total
목록filtering (1)
달나라 노트
Python Pandas : DataFrame filtering
DataFrame filtering 엑셀에선 필터 기능을 이용하여 내가 원하는 조건으로 row filter를 걸고 원하는 데이터들만 조작이 가능하죠.Pandas의 DataFrame도 이러한 기능을 제공합니다. 이러한 필터링 기능을 어떻게 이용할 수 있는지 알아봅시다. 먼저 test용 DataFrame을 생성합니다. import pandas as pd dict_name = { 'item_id': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], 'item_name': ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j'], 'status': [1, 1, 1, 0, 0, 1, 0, 1, 1, 1] } df_name = pd.DataFrame(dict_name) p..
Python/Python Pandas
2020. 11. 4. 20:03