Python実践データ分析100本ノック ノック42がエラーになってしまう
exit_dateをdatetimeにしてからstrftimeをすると通る
exit_customer["exit_date"] = pd.to_datetime(exit_customer["exit_date"]) exit_customer["年月"] = exit_customer["exit_date"].dt.strftime("%Y%m")
Python実践データ分析100本ノック ノック42がエラーになってしまう
exit_dateをdatetimeにしてからstrftimeをすると通る
exit_customer["exit_date"] = pd.to_datetime(exit_customer["exit_date"]) exit_customer["年月"] = exit_customer["exit_date"].dt.strftime("%Y%m")