GithubHelp home page GithubHelp logo

Comments (5)

mroeschke avatar mroeschke commented on July 30, 2024

Thanks for the issue. How is the third party library calling pandas? Usually this indicates that the third party library needs to adjust their usage of pandas to avoid the warning

from pandas.

quant12345 avatar quant12345 commented on July 30, 2024

@mroeschke geopandas. I wanted to fix this, but as I said, it turned out to be pandas rows(that is, when I click on the warning link, I get to the pandas file).

from pandas.

mroeschke avatar mroeschke commented on July 30, 2024

If you could share an entire traceback of where this warning happens that would be helpful

from pandas.

quant12345 avatar quant12345 commented on July 30, 2024

@mroeschke updated the message.

for example, I run a test:

pytest geopandas/tests/test_extension_array.py::TestGetitem::test_getitem_series_integer_with_missing_raises[integer-array]

I get a warning:

geopandas/tests/test_extension_array.py::TestGetitem::test_getitem_series_integer_with_missing_raises[integer-array]
  /geopandas/.venv/lib/python3.10/site-packages/pandas/tests/extension/base/getitem.py:276: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`
    ser[idx]

from pandas.

mroeschke avatar mroeschke commented on July 30, 2024

I see thanks.

As you can see on the pandas main branch this has been addressed so I think this should go away from the geopandas test suite once pandas 3.0 comes out

from pandas.

Related Issues (20)

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.