Skip to content

Commit

Permalink
Fixed a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Moulishankar10 committed Jun 4, 2021
1 parent d432de0 commit ccee299
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,9 +278,8 @@ def viewRevenueGraph():
for i in rev_data.columns:
if year in i:
rev_data = pd.read_csv("data/revenue.csv")
cols = list(rev_data.columns)
for i in cols:
if i[-4:] == year:
for i in rev_data.columns:
if year in i:
months.append(month[int(i[:2])-1])
profits.append(sum(list(rev_data[i])))
plt.scatter(months, profits,color ='red',linewidths=3)
Expand Down Expand Up @@ -489,7 +488,7 @@ def Revenue():
while True:
revenueOptionsVisualizer()
option = input("\nEnter your option : ")
if option not in '12349':
if option not in '123459':
print("\n!!!!! Please enter the valid option !!!!!\n")
else:
rev_opt = int(option)
Expand Down

0 comments on commit ccee299

Please sign in to comment.