pandas10 [Pandas] DataFrame 생략 없이 출력하기 pd.set_option('display.width', 1000) pd.set_option('display.max_rows', None) pd.set_option('display.max_columns', None) 2024. 3. 21. 데이터 프레임 출력 제한 없애기 - set_option() import pandas as pd # row 생략 없이 출력 pd.set_option('display.max_rows', None) # col 생략 없이 출력 pd.set_option('display.max_columns', None) 2024. 1. 17. 데이터 프레임 구분자 구분 - .split() 데이터프레임 해당 컬럼을 str으로 변환 후 사용 df.str.split(',', expand=True)) 2024. 1. 17. 데이터 프레임 결측치 제거 - dropna() df.dropna() 2024. 1. 17. 데이터 프레임 정렬 - sort_values() df.sort_values() 2024. 1. 17. 데이터 프레임 컬럼 날짜 변환 to_datetime() pd.to_datetime(df["날짜로변화하려는 컬럼"]) 날짜 변환 커스텀 pd.to_datetime(df).dt.strftime("%Y/%m/%d") 2024. 1. 17. 이전 1 2 다음 more 728x90