I am working on a coursera IBM project with Jupyter on my Ubuntu 22.04 and having problems with the very first cell of one section:
# Download and read the `spacex_launch_geo.csv`
from js import fetch
import io
URL = 'https://cf-courses-data.s3.us.cloud-object-storage.appdomain.cloud/IBM-DS0321EN-SkillsNetwork/datasets/spacex_launch_geo.csv'
resp = await fetch(URL)
spacex_csv_file = io.BytesIO((await resp.arrayBuffer()).to_py())
spacex_df=pd.read_csv(spacex_csv_file)
spacex_df.head(15)
and get the error:
ImportError: cannot import name 'fetch' from 'js' (/home/tim/.local/lib/python3.10/site-packages/js/__init__.py)
I have made sure to pip install js to my machine. Any ideas would be helpful. The only thing I notice when looking at the command line for my machine is that is says:
Requirement already satisfied: js in ./.local/lib/python3.10/site-packages (1.0)
Is this a problem with a global v. local to user installation of js? And if so, what can I do to alleviate the issue. Thank you.
Via Active questions tagged javascript - Stack Overflow https://ift.tt/YEZ2VX8
Comments
Post a Comment