Skip to content

Commit

Permalink
Update source_data.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ruchika817 committed Jul 27, 2021
1 parent 348fc64 commit 5fff55c
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions pre-processing/pre-processing-code/source_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,15 @@


def source_dataset():

today = date.today()


last_sunday = today - timedelta(days=9)
start_of_last_week = last_sunday - timedelta(days=16)

start_date = start_of_last_week.strftime('%m%d%y') # '071221'
#days_between_today_and_last_sunday = today.weekday() + 2
last_sunday = today - timedelta(days=2)
end_date = last_sunday.strftime('%m%d%y')

start = last_sunday - timedelta(days=6)
start_date = start.strftime('%m%d%y')



source_dataset_url = 'https://download.cms.gov/nppes/NPPES_Data_Dissemination_{start_date}_{end_date}_Weekly.zip'
response = None

Expand Down

0 comments on commit 5fff55c

Please sign in to comment.