Before being able to test the data loading process (be it with automated tests or manually under IPython) it'd be convenient for the create_main_dataframe function to be able to read zip files from the local filesystem. The modified function now works the same under the following two scenarios:
from tweet_display.read_data import create_main_dataframe
df1 = create_main_dataframe('/home/jose/Downloads/test_archive.zip')
df2 = create_main_dataframe('http://localhost:8000/test_archive.zip')
To do localhost testing I served test_archive.zip locally with the command python3 -m http.server 8000 --bind 127.0.0.1 command.
Before being able to test the data loading process (be it with automated tests or manually under IPython) it'd be convenient for the create_main_dataframe function to be able to read zip files from the local filesystem. The modified function now works the same under the following two scenarios:
To do localhost testing I served test_archive.zip locally with the command
python3 -m http.server 8000 --bind 127.0.0.1
command.