Skip to content

Invalid URL for data retrieving from the R tsibbledata package #945

Open
@Best20030421

Description

@Best20030421

Sorry in advance if I am asking a question that is too easy, I am a junior student who is trying to learn and run the tutorial you've post on Google Colab. Link: https://colab.research.google.com/drive/1efCKQtuHOlw7MLojIwqi2zrU2NZbG-FP#scrollTo=AxT2FTlMwxK4
Here is the module of code I am currently trying to run.
The url can't be retrieve and can't open directly in browser.

Data download

==============================================================================

url = ('https://raw.githubusercontent.com/JoaquinAmatRodrigo/skforecast/master/' +
'data/vic_elec.csv')
data = pd.read_csv(url, sep=',')
data.info()

Raise an error of URL not found.


HTTPError Traceback (most recent call last)
in <cell line: 0>()
2 # ==============================================================================
3 url = ('https://raw.githubusercontent.com/JoaquinAmatRodrigo/skforecast/master/data/vic_elec.csv')
----> 4 data = pd.read_csv(url, sep=',')
5 data.info()

12 frames
/usr/lib/python3.11/urllib/request.py in http_error_default(self, req, fp, code, msg, hdrs)
641 class HTTPDefaultErrorHandler(BaseHandler):
642 def http_error_default(self, req, fp, code, msg, hdrs):
--> 643 raise HTTPError(req.full_url, code, msg, hdrs, fp)
644
645 class HTTPRedirectHandler(BaseHandler):

HTTPError: HTTP Error 404: Not Found

I looked up the entire program and I think neither link1 nor link2 listed here can be opened, and link3 is still valid.
link1: https://raw.githubusercontent.com/JoaquinAmatRodrigo/skforecast/master/data/vic_elec.csv
link2: https://raw.githubusercontent.com/JoaquinAmatRodrigo/skforecast/master/data/h2o.csv
link3: https://raw.githubusercontent.com/tidyverts/tsibbledata/master/data-raw/vic_elec/VIC2015/demand.csv

Thanks a lot if any mistake can be pointed out!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions