FutureWarning: Comparing Series of datetimes with ... が出た
型変換しないで比較しようとしたらワーニングが出ました。
実行は進むんですが気持ち悪いので対処。
これはまあ型変換の問題で出るみたいなんで、上記でいうend_dateを
pandas.Timestamp(end_date)
に変更することで突破。
型変換しないで比較しようとしたらワーニングが出ました。
実行は進むんですが気持ち悪いので対処。
こんな感じで出ます。prog.py:65: FutureWarning: Comparing Series of datetimes with 'datetime.date'. Currently, the'datetime.date' is coerced to a datetime. In the future pandas willnot coerce, and a TypeError will be raised. To retain the currentbehavior, convert the 'datetime.date' to a datetime with'pd.Timestamp'.& (df.start_time <= end_date + timedelta(1)))]
これはまあ型変換の問題で出るみたいなんで、上記でいうend_dateを
pandas.Timestamp(end_date)
に変更することで突破。
コメント