I was looking into a PR in GitHub and found the following python code that I could not understand.
def hash_pandas_object(
obj,
index: bool = True,
encoding: str = "utf8",
hash_key: str = _default_hash_key,
hash_key: Optional[str] = _default_hash_key,
categorize: bool = True,
)
Here are my questions:
(1) Are both hash_key
are same or different and how they work?
(2) What Optional[str]
means?
This is the link to the PR: https://github.com/TomAugspurger/pandas/commit/492c61385e25caf76377bf9819e21e7344e7a1bd