본문 바로가기
Python_Wiki/Python_Syntax

문자열: 제일 왼쪽 빈칸 하나 없애기(.lstrip())

by yj-data 2025. 6. 5.
  • .lstrip()
  • pandas Series를 다룰때는 .str.lstrip()
  • e.g.
df['column_name'] = pd.to_datetime(df['column_name'].str.lstrip())

'Python_Wiki > Python_Syntax' 카테고리의 다른 글

자료형 비교: list / dict / tuple / set / bool  (0) 2025.07.08
in, not in  (0) 2025.07.08
결측치 제거, 개수 확인  (0) 2025.06.05
예외 처리 / try - except  (0) 2025.05.29
함수function, 매개변수  (0) 2025.05.28