From 0b316aabe142c8d47e666b64821307ebfe80b6f4 Mon Sep 17 00:00:00 2001 From: bluefcat <77389715+bluefcat@users.noreply.github.com> Date: Fri, 24 Mar 2023 19:11:33 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20timetable=20=EC=9E=98=EB=A6=BC=ED=98=84?= =?UTF-8?q?=EC=83=81=20=EC=88=98=EC=A0=95=20(#14)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crenata/discord/timetable.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crenata/discord/timetable.py b/crenata/discord/timetable.py index bebd761..296c4b9 100644 --- a/crenata/discord/timetable.py +++ b/crenata/discord/timetable.py @@ -83,7 +83,8 @@ async def make_timetable_image(results: list[list[Any]], date: datetime) -> Byte timetable.append(r.ITRT_CNTNT) day = to_weekday(to_datetime(r.ALL_TI_YMD)) - df[day] = pd.Series(timetable) + tmp = pd.DataFrame({day: timetable}) + df = pd.concat([df, tmp], axis=1) df.index += 1 df.fillna("", inplace=True)