Recent Posts
Tags
- 빅데이터 분석 기반 에너지 운영 관리자 양성 및 취업과정
- 난생처음 R코딩&데이터 분석 저서
- 이것이 취업을 위한 코딩테스트다 with 파이썬
- 코딩테스트 python
- DB
- r
- Ai
- 데이터베이스
- 네이버부스트캠프
- python
- SQL
- PY4E
- 코딩테스트
- Machine Learning
- 부스트코스
- boostcourse
- 오라클
- 기초다지기
- AI 플랫폼을 활용한 데이터 분석
- 빅분기
- [멀티잇]데이터 시각화&분석 취업캠프(Python)
- boostcoures
- 데이터 분석 기반 에너지 운영 관리자 양성 및 취업과정
- Oracle
- 인공지능기초다지기
- 프로그래머스
- 정보처리기사
- 빅데이터분석기사
- 이기적
- 파이썬
- Today
- Total
매일공부
[python] 문자열인 숫자 판단 본문
isdigit() vs isnumeric() vs isdecimal()
- isdecimal
- 10진수만 True
- Decimal characters are those that can be used to form numbers in base 10
- isdigit
- 일반적인 모든 숫자 + 수학적인 함수 포함(분수, 로그 등)
- Digits include decimal characters and digits that need special handling, such as the compatibility superscript digits. This covers digits which cannot be used to form numbers in base 10, like the Kharosthi numbers.
- isnumeric
- 일반적인 모든 숫자 + 수학적인 함수 + 유니코드로 표현가능한 숫자(로마자 등)
- Numeric characters include digit characters, and all characters that have the Unicode numeric value property
참고링크
- https://docs.python.org/3/library/stdtypes.html?highlight=isdecimal#str.isdecimal
- https://datagy.io/python-isdigit/
'Programming > Python' 카테고리의 다른 글
| [파이썬] 왜 항상 groupby는 집계함수랑 같이 써야하는가 (0) | 2023.07.05 |
|---|---|
| [python] 진법&자료형 변환 Casting 함수 (0) | 2023.06.19 |
| [Python Pandas] Dataframe 다중 인덱스 & 병합, 연결 (0) | 2022.09.14 |
| [Python] Pandas를 활용한 데이터 수집 (0) | 2022.09.02 |
| Python Pandas 차집합&대칭차집합 구하기 (0) | 2022.08.29 |
Comments