Giter Site home page Giter Site logo

BUG: True cannot be cast to bool about pandas HOT 6 OPEN

nwalsh82 avatar nwalsh82 commented on June 17, 2024
BUG: True cannot be cast to bool

from pandas.

Comments (6)

CaelThompson avatar CaelThompson commented on June 17, 2024

take

from pandas.

aabhinavg avatar aabhinavg commented on June 17, 2024

"Hi, @nwalsh82 I've found a patch that could potentially fix the issue. You can find the changes in the following link: shiny-new-feature patch. Could you please take a look and see if it addresses the problem? Let me know if you have any questions about it!"

from pandas.

rmhowe425 avatar rmhowe425 commented on June 17, 2024

@aabhinavg Have you created a PR for this bug? If so, could you link your PR to this issue by following the contribution guidelines?

I believe that I've found @aabhinavg's PR for this issue. It looks like it's closed because the PR went stale. Taking this issue unless @aabhinavg states that they are still interested in working on it.

from pandas.

rmhowe425 avatar rmhowe425 commented on June 17, 2024

take

from pandas.

asishm avatar asishm commented on June 17, 2024

looks like similar issue as #45903 (but that may be looking at None -> Boolean whereas this is True -> boolean). If so, the PR #46374 was closed due to going stale, which I feel was close. @rmhowe425

The main issue seems to be that pd.BooleanArray._from_sequence_of_strings is getting called with values that are not strings.

from pandas.

asishm avatar asishm commented on June 17, 2024

Also @yuanx749's comment #45903 (comment) of using dtype_backed='numpy_nullable' is a workaround, but it seems to only after the dtype evaluation if defined in the read_excel call.

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.