Open jialuoo opened 3 weeks ago
What do you hope to use the corrected table for?
Thanks for the quick response.
I just want to clarify whether this behavior is expected or if it might be a bug. What are the rules for logical operations between a Pandas DataFrame and a Series (e.g., dataframe | dataframe, dataframe | series, etc.)? Is there any user manual or documentation that explains the rules for logical operations between a Pandas DataFrame and a Series?
At the moment, I don't have a specific goal in mind. I noticed this behavior while experimenting with the DataFrame.where method, which seems to allow these logical operations as conditions. For example: df.where((df >= 10) | (df['A'] >= 10)). So, the results of the logical operation will directly affect the dataframe.where results.
take
Pandas version checks
[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] I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
The output:
Issue Description
1
and column2
to beTrue
since it's an|
operation between dataframe and series.Thanks a lot!
Expected Behavior
I would expect the results in column
1
and column2
to beTrue
since it's an|
operation between dataframe and series.Installed Versions