From 498f70aa2f998c1b9a1643f59f4722e9f31e8f8a Mon Sep 17 00:00:00 2001 From: iriska-gri <79623434+iriska-gri@users.noreply.github.com> Date: Fri, 20 Oct 2023 13:55:47 +0300 Subject: [PATCH] 1 --- general_vacation/views.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/general_vacation/views.py b/general_vacation/views.py index 66240ee9e..25064e54d 100644 --- a/general_vacation/views.py +++ b/general_vacation/views.py @@ -223,6 +223,11 @@ class DailyRoundUpAPIView(APIView): def post(self, request): file = request.data['dailyfiles'] - df = pd.read_excel(file) + ed = pd.read_excel(file) + df = pd.DataFrame(ed) + df.columns = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l"] + # for x in range(12): + # print(x,'!!!!!!!!!!!!!!!!!!!!!!!!!!!') + # df.rename( columns={x :f"{x+1}"}, inplace=True ) print(df) return Response('')