Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pandas as pd
- from functionalities import kalimati_market, date_header
- # initializing values and these values represent respective column of commodity price table:
- date = date_header()
- products = kalimati_market(0)
- units = kalimati_market(1)
- minimum = kalimati_market(2)
- maximum = kalimati_market(3)
- average = kalimati_market(4)
- # pandas dataframes
- d = {'वस्तु': products, 'एकाइ': units, 'न्यूनतम': minimum, 'अधिकतम': maximum, 'औसत': average}
- df = pd.DataFrame(data=d)
- df.to_excel(f"{date}.xlsx", index=False)
- print("Done!")
Add Comment
Please, Sign In to add comment