반응형
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 |
Tags
- pycdc.exe
- 왕초보 파이썬 실행
- 네이버커머스API
- selenium
- 파이썬 가상환경 설치
- 가상환경설치
- pywinauto 윈도우제어
- 파이썬 가상환경 설치방법
- Element is not clickable at point
- 파이썬 네이버 로그인
- 날짜 정규식
- 네이버 로그인 캡챠해결
- 네이버매물크롤링
- 파이썬 환경설정
- pycdas.exe
- Uipath 설치방법
- venv 설치
- Selenium 셀렉터잡기
- 커머스API
- pywinauto 윈도우
- vscode venv 설치
- pywinauto
- 네이버 로그인 하기
- 네이버 로그인 영수증 해결
- Uipath 기초
- uipath 입문
- UiPath
- Python
- 파이썬네이버부동산
- 네이버부동산크롤링
Archives
- Today
- Total
콘솔워크
pandas.Series.str.match 특정 단어와 완전 일치하는 데이터 필터링 본문
반응형
# 처방
def get_df_prescribed(self):
df_prescribed = self.df_order.loc[self.df_order["처방구분"].str.match("처방")]
print(df_prescribed)
return df_prescribed
# 비처방
def get_df_not_prescribed(self):
df_not_prescribed = self.df_order.loc[self.df_order["처방구분"].str.match("비처방")]
print(df_not_prescribed)
return df_not_prescribed
contains로는 겹쳐버리는 문자가 있으면 걸러내지 못하는 데이터를 match를 이용해서 걸러낸다.
반응형
'프로그래밍 > python' 카테고리의 다른 글
문자열에서 숫자만 가져오는 여러 방법 (0) | 2022.09.29 |
---|---|
현재 날짜 가져오기 및 특정 일자 더하기 (0) | 2022.09.28 |
브라우저가 멈출 정도의 로딩에 빠졌을 때 파이썬이 기다려 줄 수 있는 최대 시간 설정 (selenium의 time out exception 방지) (0) | 2022.09.23 |
Decompyle++ 윈도우 exe 파일 (14) | 2022.09.20 |
dataframe 칼럼과 list를 비교하여 데이터 추출 (0) | 2022.09.19 |