단계 1 / 29: 환경 설정 및 데이터 로딩
클릭하여 단계를 이동할 수 있습니다
고객 서비스 분석에 필요한 라이브러리를 import하고, 리뷰, 주문, 고객 데이터를 로딩합니다.
# 필요한 라이브러리들을 import 하세요
# pandas, numpy, matplotlib.pyplot, seaborn
# datetime에서 datetime, timedelta
# sklearn에서 train_test_split, RandomForestRegressor, RandomForestClassifier
# sklearn.linear_model에서 LinearRegression
# sklearn.preprocessing에서 LabelEncoder, StandardScaler
# sklearn.metrics에서 mean_squared_error, r2_score, classification_report, confusion_matrix
# warnings를 ignore 설정하세요
# 한글 폰트와 그래프 스타일을 설정하세요
# matplotlib의 폰트를 'DejaVu Sans'로 설정
# seaborn 스타일을 'seaborn-v0_8'로 설정
# "=== 고객 서비스 분석 실습 ===" 출력
# 1. 다음 3개 CSV 파일을 로딩하세요:
# - olist_order_reviews_dataset.csv → reviews_df
# - olist_orders_dataset.csv → orders_df
# - olist_customers_dataset.csv → customers_df
# 각 데이터프레임의 shape을 출력하여 확인하세요고객 서비스 분석에 필요한 라이브러리를 import하고, 리뷰, 주문, 고객 데이터를 로딩합니다.