чтение файла
This commit is contained in:
1 parent
601f8f4416
commit
7cef4702db
2 files changed
+6
-1
No files matched your search
BIN
Binary file not shown.
@@ -225,9 +225,14 @@ class DailyRoundUpAPIView(APIView):
|
||||
file = request.data['dailyfiles']
|
||||
ed = pd.read_excel(file)
|
||||
df = pd.DataFrame(ed)
|
||||
print(df.columns[8].split(" ")[1])
|
||||
datas = df.columns[8].split(" ")[1]
|
||||
base=BasePosition.objects.get(pk=1)
|
||||
# print(self.request.user ,base.name,'---------------------------')
|
||||
DailyRoundUp.objects.create(todaysDate='2023-09-29', user=self.request.user, position=base)
|
||||
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('')
|
||||
Reference in new issue
Block a user