Skip to content
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

Converted data to appropriate units + daily data fetch condition added #23

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

kenzaxtazi
Copy link

Converted data to appropriate units

main.py Outdated
@@ -12,6 +13,13 @@
if not os.path.exists(data_file):
save_csv_from_url(url, data_file)

# Fetch data if it is more than one day out of date
today = date.today()
last_date = date.today() #pandas.read_csv(data_file, names=headers, usecols=[0], skiprows=[0:-2])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to use: e.g. https://docs.python.org/3/library/os.path.html#os.path.getmtime on the file to check when it was last "modified" and compare to current time.

@kenzaxtazi kenzaxtazi changed the title added a description of the project Converted data to appropriate units + daily data fetch condition added Nov 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants