Open DeflateAwning opened 1 month ago
After further experimentation, I've deamed that the DeprecationWarning in v0.20.31 for how='left'
is an outright lie.
Opening another issue in case there's any interest in backporting to fix that DeprecationWarning.
I've deamed that the DeprecationWarning in v0.20.31 for how='left' is an outright lie.
Relax there is no ill intent. I am sorry for the hassle you experienced, but we are allowed to change our mind. It is free software. You are free to open a PR to suggest the documentation changes you'd like to see.
Sorry, I didn't mean to suggest there was ill-intent with the use of the word "lie". I just meant that it was factually incorrect. I can't imagine the awesome maintainers of this project would ever have any ill-intent. Thanks a lot for your work on this project :)
I may submit the PR, but in case anyone gets to it first, I'd propose the following change:
In the coalesce section, explain the default join type for each
how
option.
Proposed Change:
In the coalesce section, explain the default join type for each
how
option.Description
Since the v1.0 milestone, it doesn't seem like the behaviour of
df.join(df2, how='left', on/left_on/right_on=...)
changed, despite the warnings in v0.20.31.Main Request: Add an example to the join page which clarifies the behaviour of
how='left'
with each coalesce option. Explain the behaviour ofcoalesce=None
for each join type (currently says "None: -> join specific.", which is sort of meaningless without any additional context).Additional Confusion
I would have expected the following code to behave differently on v0.20.31 vs. v1.3, based on the
DeprecationWarning
in v0.20.31.The output on both mentioned versions is the following:
Deprecation Warnings:
Link
https://docs.pola.rs/api/python/stable/reference/dataframe/api/polars.DataFrame.join.html#polars.DataFrame.join