-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Corona cases Time series forecasting #828 #852
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Congratulations!! for making your first PR at Amazing-Python-Scripts, our mentors will review it soon.
corona cases forecasting/README.md
Outdated
@@ -0,0 +1,17 @@ | |||
# corona Cases Forecasting |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# corona Cases Forecasting | |
# Corona Cases Forecasting |
corona cases forecasting/main.py
Outdated
|
||
|
||
|
||
def recovered_cases(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here is the error, you previously defined the "recovered_cases" as a pandas data frame and now defining it as a function. This may not have any effect in Jupyter notebook as they are cell-based but in a Py script, it will give an error. Change this function name and at other instances where it is used
corona cases forecasting/main.py
Outdated
plt.title('New active Cases Forecast') | ||
plt.xticks(rotation=90) | ||
# plt.figure(figsize=(22,22)) | ||
plt.savefig("plot1.png",bbox_inches='tight') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
plt.savefig("plot1.png",bbox_inches='tight') | |
plt.savefig("./corona cases forecasting/Results/plot1.png",bbox_inches='tight') | |
corona cases forecasting/main.py
Outdated
plt.title('New death Cases Forecast') | ||
plt.xticks(rotation=90) | ||
# plt.figure(figsize=(22,22)) | ||
plt.savefig("plot2.png",bbox_inches='tight') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
plt.savefig("plot2.png",bbox_inches='tight') | |
plt.savefig("./corona cases forecasting/Results/plot2.png",bbox_inches='tight') | |
corona cases forecasting/main.py
Outdated
plt.title('New recovered Cases Forecast') | ||
plt.xticks(rotation=90) | ||
# plt.figure(figsize=(22,22)) | ||
plt.savefig("plot3.png",bbox_inches='tight') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
plt.savefig("plot3.png",bbox_inches='tight') | |
plt.savefig("./corona cases forecasting/Results/plot3.png",bbox_inches='tight') | |
corona cases forecasting/main.py
Outdated
plt.show() | ||
|
||
|
||
choice=input("F for fresh cases,D for death cases,R for recovered cases prediction") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
choice=input("F for fresh cases,D for death cases,R for recovered cases prediction") | |
choice=input("F for fresh cases,D for death cases,R for recovered cases prediction: ") | |
corona cases forecasting/main.py
Outdated
recovered_cases_daily() | ||
else: | ||
print("Enter a valid choice") | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove these long trailing blank lines
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏼
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
Added a folder 'corona cases forecasting' having python script , result images and requirements.txt.
Fixes #828
Have you read the Contributing Guidelines on Pull Requests?
Type of change
Please delete options that are not relevant.
Checklist:
README.md
Template for README.md