Skip to content

Commit 3ad9d3f

Browse files
committed
issue 55605
If we make Index false then we will get same hash
1 parent 4556f11 commit 3ad9d3f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pandas/_config/FirstDate.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
df['date'] = pd.to_datetime(df['date'], format='%d/%m/%Y').dt.strftime('%d-%m-%Y')
2222

2323
# Print the DataFrame
24-
print(df)
24+
print(df)
2525

2626

2727

pandas/core/util/hashing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def combine_hash_arrays(
8282

8383
def hash_pandas_object(
8484
obj: Index | DataFrame | Series,
85-
index: bool = True,
85+
index: bool = False,
8686
encoding: str = "utf8",
8787
hash_key: str | None = _default_hash_key,
8888
categorize: bool = True,

0 commit comments

Comments
 (0)