Эксель
This commit is contained in:
1 parent
55fe8f7fa0
commit
fa1b17c64d
3 files changed
+5
-2
No files matched your search
@@ -93,6 +93,7 @@ class roundExcel():
|
|||||||
|
|
||||||
l = pd.DataFrame(self.df[(self.df.department==i)][['tabel', 'familyname', 'name', 'parentname']])
|
l = pd.DataFrame(self.df[(self.df.department==i)][['tabel', 'familyname', 'name', 'parentname']])
|
||||||
|
|
||||||
|
|
||||||
zap = [7, 9, 11]
|
zap = [7, 9, 11]
|
||||||
for x in range(len(l)):
|
for x in range(len(l)):
|
||||||
k=k+1
|
k=k+1
|
||||||
@@ -104,6 +105,8 @@ class roundExcel():
|
|||||||
ws.cell(row = k, column = 3).value = l.iloc[x]['familyname']
|
ws.cell(row = k, column = 3).value = l.iloc[x]['familyname']
|
||||||
ws.cell(row = k, column = 4).value = l.iloc[x]['name']
|
ws.cell(row = k, column = 4).value = l.iloc[x]['name']
|
||||||
ws.cell(row = k, column = 5).value = l.iloc[x]['parentname']
|
ws.cell(row = k, column = 5).value = l.iloc[x]['parentname']
|
||||||
|
ws.cell(row = k, column = 6).value = '=If(H'+str(k)+'=1,"",1)'
|
||||||
|
print(k, '------------------------------')
|
||||||
|
|
||||||
for h in zap:
|
for h in zap:
|
||||||
ws.cell(row = k, column = h).border = Border(top=thins, bottom=thins, left=thins, right=thins)
|
ws.cell(row = k, column = h).border = Border(top=thins, bottom=thins, left=thins, right=thins)
|
||||||
|
|||||||
Binary file not shown.
@@ -133,8 +133,8 @@ class CarouselsAPIView(ListAPIView):
|
|||||||
|
|
||||||
|
|
||||||
result.append(allbirthday)
|
result.append(allbirthday)
|
||||||
print(result, 'result ------------------------------------')
|
# print(result, 'result ------------------------------------')
|
||||||
print(allbirthday, 'allbirthday ------------------------------------')
|
# print(allbirthday, 'allbirthday ------------------------------------')
|
||||||
# print(birthday, 'birthday ------------------------------------')
|
# print(birthday, 'birthday ------------------------------------')
|
||||||
# result = [allbirthday] + birthday+ result
|
# result = [allbirthday] + birthday+ result
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user