423cff4567
### What changes were proposed in this pull request?
Fix filtering a Series (without a name) by a boolean Series.
### Why are the changes needed?
A bugfix. The issue is raised as https://github.com/databricks/koalas/issues/2199.
### Does this PR introduce _any_ user-facing change?
Yes.
#### From
```py
>>> psser = ps.Series([0, 1, 2, 3, 4])
>>> ps.set_option('compute.ops_on_diff_frames', True)
>>> psser.loc[ps.Series([True, True, True, False, False])]
Traceback (most recent call last):
...
KeyError: 'none key'
```
#### To
```py
>>> psser = ps.Series([0, 1, 2, 3, 4])
>>> ps.set_option('compute.ops_on_diff_frames', True)
>>> psser.loc[ps.Series([True, True, True, False, False])]
0 0
1 1
2 2
dtype: int64
```
### How was this patch tested?
Unit test.
Closes #34061 from xinrong-databricks/filter_series.
Authored-by: Xinrong Meng <xinrong.meng@databricks.com>
Signed-off-by: Takuya UESHIN <ueshin@databricks.com>
(cherry picked from commit
|
||
---|---|---|
.. | ||
data_type_ops | ||
indexes | ||
missing | ||
plot | ||
spark | ||
tests | ||
typedef | ||
usage_logging | ||
__init__.py | ||
_typing.py | ||
accessors.py | ||
base.py | ||
categorical.py | ||
config.py | ||
datetimes.py | ||
exceptions.py | ||
extensions.py | ||
frame.py | ||
generic.py | ||
groupby.py | ||
indexing.py | ||
internal.py | ||
ml.py | ||
mlflow.py | ||
namespace.py | ||
numpy_compat.py | ||
series.py | ||
sql_processor.py | ||
strings.py | ||
utils.py | ||
window.py |