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

refactor: change datasource #9

Merged
merged 1 commit into from
Sep 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading