단계 1 / 28: 환경 설정 및 데이터 로딩
클릭하여 단계를 이동할 수 있습니다
비즈니스 인텔리전스 분석에 필요한 모든 라이브러리와 데이터셋을 로딩하여 종합적인 분석 환경을 구축합니다.
# 필요한 라이브러리들을 import 하세요
# pandas, numpy, matplotlib.pyplot, seaborn
# datetime에서 datetime, timedelta
# sklearn에서 train_test_split, RandomForestRegressor, RandomForestClassifier
# sklearn.cluster에서 KMeans
# sklearn.preprocessing에서 StandardScaler, LabelEncoder
# sklearn.metrics에서 mean_squared_error, r2_score, classification_report, silhouette_score
# warnings를 ignore 설정하세요
# 한글 폰트와 그래프 스타일을 설정하세요
# matplotlib의 폰트를 'DejaVu Sans'로 설정
# seaborn 스타일을 'seaborn-v0_8'로 설정
# "=== 비즈니스 인텔리전스 분석 실습 ===" 출력
# 1. 다음 7개 CSV 파일을 로딩하세요:
# - olist_customers_dataset.csv → customers_df
# - olist_orders_dataset.csv → orders_df
# - olist_sellers_dataset.csv → sellers_df
# - olist_geolocation_dataset.csv → geolocation_df
# - olist_order_items_dataset.csv → order_items_df
# - olist_order_payments_dataset.csv → payments_df
# - olist_products_dataset.csv → products_df
# 각 데이터프레임의 shape을 출력하여 확인하세요비즈니스 인텔리전스 분석에 필요한 모든 라이브러리와 데이터셋을 로딩하여 종합적인 분석 환경을 구축합니다.