Skip to content

BUG: #55717

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

Closed
3 tasks done
xieyirmvb opened this issue Oct 27, 2023 · 2 comments
Closed
3 tasks done

BUG: #55717

xieyirmvb opened this issue Oct 27, 2023 · 2 comments
Labels
Bug Duplicate Report Duplicate issue or pull request

Comments

@xieyirmvb
Copy link

xieyirmvb commented Oct 27, 2023

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

import pandas as pd

a = pd.DataFrame([['1'],['2'],['3']],columns=['sales'])
a_copy = a.copy()
a_copy.loc[:,'sales'] = pd.Series(a['sales'], dtype='float64')
a_copy.loc[:,'sales'] = pd.Series(a['sales'], dtype='float64[pyarrow]')

Issue Description

Set value for an entire column not working
Using a_copy.loc[:,'sales']
image

image

image

Expected Behavior

Expected
image

Installed Versions

INSTALLED VERSIONS

commit : a60ad39
python : 3.11.5.final.0
python-bits : 64
OS : Windows
OS-release : 10
Version : 10.0.22621
machine : AMD64
processor : Intel64 Family 6 Model 151 Stepping 2, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : Chinese (Simplified)_China.936
pandas : 2.1.2
numpy : 1.24.3
pytz : 2023.3.post1
dateutil : 2.8.2
setuptools : 68.0.0
pip : 23.2.1
Cython : None
pytest : 7.4.0
hypothesis : None
sphinx : 5.0.2
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.9.3
html5lib : None
pymysql : 1.4.6
psycopg2 : None
jinja2 : 3.1.2
IPython : 8.15.0
pandas_datareader : None
bs4 : 4.12.2
bottleneck : 1.3.5
dataframe-api-compat: None
fastparquet : None
fsspec : 2023.4.0
gcsfs : None
matplotlib : 3.7.2
numba : 0.57.1
numexpr : 2.8.4
odfpy : None
openpyxl : 3.0.10
pandas_gbq : None
pyarrow : 11.0.0
pyreadstat : None
pyxlsb : None
s3fs : 2023.4.0
scipy : 1.11.1
sqlalchemy : 1.4.39
tables : 3.8.0
tabulate : 0.8.10
xarray : 2023.6.0
xlrd : None
zstandard : 0.19.0
tzdata : 2023.3
qtpy : 2.2.0
pyqt5 : None

@xieyirmvb xieyirmvb added Bug Needs Triage Issue that has not been reviewed by a pandas team member labels Oct 27, 2023
@lukemanley
Copy link
Member

lukemanley commented Oct 29, 2023

duplicate of #52593 - same underlying issue

@lukemanley lukemanley added Duplicate Report Duplicate issue or pull request and removed Needs Triage Issue that has not been reviewed by a pandas team member labels Oct 29, 2023
@mroeschke
Copy link
Member

Closing as a duplicate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Duplicate Report Duplicate issue or pull request
Projects
None yet
Development

No branches or pull requests

3 participants