-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: True cannot be cast to bool #58159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
take |
"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!" |
@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. |
take |
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 |
Also @yuanx749's comment #45903 (comment) of using |
Pandas version checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
Issue Description
When:
The following error is raised:
Expected Behavior
Bool literal should be read, no error should be raised.
Installed Versions
commit : bdc79c1
python : 3.11.4.final.0
python-bits : 64
OS : Windows
OS-release : 10
Version : 10.0.19045
machine : AMD64
processor : Intel64 Family 6 Model 165 Stepping 2, GenuineIntel
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : English_United Kingdom.1252
pandas : 2.2.1
numpy : 1.26.4
pytz : 2023.3
dateutil : 2.8.2
setuptools : 68.1.2
pip : 24.0
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 5.1.0
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 3.1.2
IPython : None
pandas_datareader : None
adbc-driver-postgresql: None
adbc-driver-sqlite : None
bs4 : None
bottleneck : None
dataframe-api-compat : None
fastparquet : None
fsspec : None
gcsfs : None
matplotlib : None
numba : None
numexpr : None
odfpy : None
openpyxl : 3.1.2
pandas_gbq : None
pyarrow : 12.0.1
pyreadstat : None
python-calamine : None
pyxlsb : None
s3fs : None
scipy : 1.10.1
sqlalchemy : 2.0.20
tables : None
tabulate : None
xarray : None
xlrd : None
zstandard : None
tzdata : 2023.3
qtpy : None
pyqt5 : None
The text was updated successfully, but these errors were encountered: