-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: hashing's are the same for different key values for hash_pandas_object #41404
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
Although I confirm your example,
the documentation for this method alludes to the key being relevant only to string dtypes:
Therefore:
|
great thanks for soon answer Column Non-Null Count Dtype0 A 14 non-null object Column Non-Null Count Dtype0 A 14 non-null int32 |
then I converted data to str? by the way |
thanks for soon answer about link May you ASAP to help with main problem : I converted data to str but still get the shame hashes , as written above |
''' |
more details exampletest[ [ columns_names[i] , columns_names[j] ] ] Column Non-Null Count Dtype0 A 14 non-null object
|
i see the same as you when you use please reduce your examples to the bare minimum. there is much unnecessary information across the 14 rows of your dataframe. and you can express index much clearer than |
how many rows you need? |
''' |
where |
meantime |
Pandas is a volunteer open source project. There are over 3.5k outstanding issues. I will not be focusing my efforts on this. You are very welcome and encouraged to submit your own PR to address this issue. |
[x ] I have checked that this issue has not already been reported.
[ x] I have confirmed this bug exists on the latest version of pandas.
[ x] (optional) I have confirmed this bug exists on the master branch of pandas.
Note: Please read this guide detailing how to provide the necessary information for us to reproduce your bug.
Code Sample, a copy-pastable example
Problem description
it should be different hashing values for different keys
Expected Output
Output of
pd.show_versions()
[paste the output of
pd.show_versions()
here leaving a blank line after the details tag]print("sklearn.version = ", sklearn.version)
sklearn.version = 0.24.2
pd.show_versions()
INSTALLED VERSIONS
commit : 2cb9652
python : 3.8.7.final.0
python-bits : 64
OS : Windows
OS-release : 10
Version : 10.0.19041
machine : AMD64
processor : Intel64 Family 6 Model 158 Stepping 9, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : English_United States.1252
pandas : 1.2.4
numpy : 1.19.5
pytz : 2021.1
dateutil : 2.8.1
pip : 20.3.3
setuptools : 51.3.3
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : None
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pyxlsb : None
s3fs : None
scipy : 1.6.3
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : None
The text was updated successfully, but these errors were encountered: