GithubHelp home page GithubHelp logo

Comments (12)

bkawakami avatar bkawakami commented on June 14, 2024

Looks like with the last update of @ExpDev07 this package start return wrong data :(

from covid19py.

ExpDev07 avatar ExpDev07 commented on June 14, 2024

@bkawakami @carmelotony Per JHU's recent announcement (the main data provider), they will:

  1. Not provide data on recoveries.
  2. Drop province-level data and focus on countries as a whole.

If you specify csbs as source you can retrieve US-specific data (including states and counties).

Relevant: ExpDev07/coronavirus-tracker-api#161.

from covid19py.

carmelotony avatar carmelotony commented on June 14, 2024

@bkawakami @carmelotony Per JHU's recent announcement (the main data provider), they will:

  1. Not provide data on recoveries.
  2. Drop province-level data and focus on countries as a whole.

If you specify csbs as source you can retrieve US-specific data (including states and counties).

Relevant: ExpDev07/coronavirus-tracker-api#161.

Do I need to up date the package getting?
Getting this error when passing csbs

init() got an unexpected keyword argument 'data_source'

from covid19py.

carmelotony avatar carmelotony commented on June 14, 2024

Passed "csbs" instead of data_source = "csbs" and it made the connections...
However, after trying to retrieve data got the following error...

Invalid URL 'csbs/v2/locations': No schema supplied. Perhaps you meant http://csbs/v2/locations?

from covid19py.

ExpDev07 avatar ExpDev07 commented on June 14, 2024

The source needs to be passed as a query param. /v2/locations?source=csbs @carmelotony

from covid19py.

Kamaropoulos avatar Kamaropoulos commented on June 14, 2024

@carmelotony the first argument it gets is the URL, that's why it tries to retrieve data from csbs/v2/locations.

Try using COVID19(data_source="csbs") instead. 🙂

from covid19py.

carmelotony avatar carmelotony commented on June 14, 2024

@carmelotony the first argument it gets is the URL, that's why it tries to retrieve data from csbs/v2/locations.

Try using COVID19(data_source="csbs") instead. 🙂

@Kamaropoulos

getting this error...

TypeError Traceback (most recent call last)
in
1 #creat covid19 instance
----> 2 covid19 = COVID19Py.COVID19(data_source="csbs")

TypeError: init() got an unexpected keyword argument 'data_source'

from covid19py.

ExpDev07 avatar ExpDev07 commented on June 14, 2024

Probably need to update your deps.

from covid19py.

Kamaropoulos avatar Kamaropoulos commented on June 14, 2024

@carmelotony the first argument it gets is the URL, that's why it tries to retrieve data from csbs/v2/locations.
Try using COVID19(data_source="csbs") instead. 🙂

@Kamaropoulos

getting this error...

TypeError Traceback (most recent call last)
in
1 #creat covid19 instance
----> 2 covid19 = COVID19Py.COVID19(data_source="csbs")

TypeError: init() got an unexpected keyword argument 'data_source'

Weird, I had it happen once while testing this out but now I can't reproduce it, it worked fine when I tried it again 🤔

from covid19py.

carmelotony avatar carmelotony commented on June 14, 2024

@carmelotony the first argument it gets is the URL, that's why it tries to retrieve data from csbs/v2/locations.
Try using COVID19(data_source="csbs") instead. 🙂

@Kamaropoulos
getting this error...
TypeError Traceback (most recent call last)
in
1 #creat covid19 instance
----> 2 covid19 = COVID19Py.COVID19(data_source="csbs")
TypeError: init() got an unexpected keyword argument 'data_source'

Weird, I had it happen once while testing this out but now I can't reproduce it, it worked fine when I tried it again 🤔

Just upgraded to version 0.3.0, but still the same error...

from covid19py.

Kamaropoulos avatar Kamaropoulos commented on June 14, 2024

@carmelotony what's your platform and Python version?

from covid19py.

carmelotony avatar carmelotony commented on June 14, 2024

@carmelotony what's your platform and Python version?

window 10 conda 3.8

from covid19py.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.