File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -278,9 +278,8 @@ def viewRevenueGraph():
278
278
for i in rev_data .columns :
279
279
if year in i :
280
280
rev_data = pd .read_csv ("data/revenue.csv" )
281
- cols = list (rev_data .columns )
282
- for i in cols :
283
- if i [- 4 :] == year :
281
+ for i in rev_data .columns :
282
+ if year in i :
284
283
months .append (month [int (i [:2 ])- 1 ])
285
284
profits .append (sum (list (rev_data [i ])))
286
285
plt .scatter (months , profits ,color = 'red' ,linewidths = 3 )
@@ -489,7 +488,7 @@ def Revenue():
489
488
while True :
490
489
revenueOptionsVisualizer ()
491
490
option = input ("\n Enter your option : " )
492
- if option not in '12349 ' :
491
+ if option not in '123459 ' :
493
492
print ("\n !!!!! Please enter the valid option !!!!!\n " )
494
493
else :
495
494
rev_opt = int (option )
You can’t perform that action at this time.
0 commit comments