Skip to content

Commit

Permalink
refactor: change datasource
Browse files Browse the repository at this point in the history
refs #6
  • Loading branch information
jo-elimu committed Sep 2, 2024
1 parent f316e4a commit ad5eba4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions step1_prepare/step1_1_download_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
import pandas

# Read the storybooks CSV into a DataFrame, and write the DataFrame to a CSV file
storybooks_csv_url = ('https://raw.githubusercontent.com/elimu-ai/webapp/main/src/main/resources/db/content_PROD/hin/storybooks.csv')
storybooks_csv_url = 'https://raw.githubusercontent.com/elimu-ai/webapp/main/src/main/resources/db/content_PROD/hin/storybooks.csv'
print(os.path.basename(__file__), 'storybooks_csv_url: {}'.format(storybooks_csv_url))
storybooks_dataframe = pandas.read_csv(storybooks_csv_url)
print(os.path.basename(__file__), 'storybooks_dataframe: \n{}'.format(storybooks_dataframe))
storybooks_dataframe.to_csv('step1_1_storybooks.csv', index=False)

# Read the storybook learning events CSV into a DataFrame, and write the DataFrame to a CSV file
storybook_learning_events_csv_url = ('https://raw.githubusercontent.com/elimu-ai/webapp/main/src/main/resources/db/analytics_PROD/hin/storybook-learning-events.csv')
storybook_learning_events_csv_url = 'http://hin.elimu.ai/analytics/storybook-learning-event/list/storybook-learning-events.csv'
print(os.path.basename(__file__), f'storybook_learning_events_csv_url: {storybook_learning_events_csv_url}')
storybook_learning_events_dataframe = pandas.read_csv(storybook_learning_events_csv_url)
print(os.path.basename(__file__), f'storybook_learning_events_dataframe: \n{storybook_learning_events_dataframe}')
Expand Down

0 comments on commit ad5eba4

Please sign in to comment.