Skip to content

Instantly share code, notes, and snippets.

View jose2007kj's full-sized avatar
🏠
Working from home

KJ JOSE jose2007kj

🏠
Working from home
  • VadakkekaraApps
  • KERALA
View GitHub Profile
@jose2007kj
jose2007kj / xlsx.py
Last active June 9, 2018 14:08
Logic and implimentation Creating csv files from mulitple xlsx sheets
for i in sheet1.index:
# for i in range(0,5):
# if i>1:
final_xlsx.append(sheet1['D1'][i]) #for adding the values of coloumn D1,D2 of row i to fianl_xlsx list
final_xlsx.append(sheet1['D2'][i])
for j in df.index:
# for j in range(0,30):
# if j>1:
if sheet1['D1'][i] == df['C'][j]: #checking for matching conditions
if df['D'][j] not in final_xlsx: