Skip to content

Commit

Permalink
Fix docs build
Browse files Browse the repository at this point in the history
  • Loading branch information
NickCrews committed Jun 12, 2022
1 parent 03e0203 commit a4c3045
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
5 changes: 3 additions & 2 deletions docs/release_notes/release_notes-0.16.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Key Features and Updates
------------------------

* Stability and Bugfixes
*
* FIX-#4570: Replace ``np.bool`` -> ``np.bool_`` (#4571)
* Performance enhancements
*
* Benchmarking enhancements
Expand All @@ -32,4 +32,5 @@ Key Features and Updates

Contributors
------------
@mvashishtha
@mvashishtha
@NickCrews
6 changes: 3 additions & 3 deletions modin/pandas/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ def all(
type(self).__name__, "all"
)
)
data_for_compute = self[self.columns[self.dtypes == np.bool]]
data_for_compute = self[self.columns[self.dtypes == bool]]
return data_for_compute.all(
axis=axis, bool_only=False, skipna=skipna, level=level, **kwargs
)
Expand Down Expand Up @@ -802,7 +802,7 @@ def any(
type(self).__name__, "all"
)
)
data_for_compute = self[self.columns[self.dtypes == np.bool]]
data_for_compute = self[self.columns[self.dtypes == bool]]
return data_for_compute.any(
axis=axis, bool_only=False, skipna=skipna, level=level, **kwargs
)
Expand Down Expand Up @@ -1105,7 +1105,7 @@ def count(self, axis=0, level=None, numeric_only=False): # noqa: PR01, RT01, D2
Count non-NA cells for `BasePandasDataset`.
"""
axis = self._get_axis_number(axis)
frame = self.select_dtypes([np.number, np.bool]) if numeric_only else self
frame = self.select_dtypes([np.number, bool]) if numeric_only else self

if level is not None:
if not frame._query_compiler.has_multiindex(axis=axis):
Expand Down
2 changes: 1 addition & 1 deletion modin/pandas/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -2441,7 +2441,7 @@ def _getitem(self, key):
Series with retrieved data.
"""
key = apply_if_callable(key, self)
if isinstance(key, Series) and key.dtype == np.bool:
if isinstance(key, Series) and key.dtype == bool:
# This ends up being significantly faster than looping through and getting
# each item individually.
key = key._to_pandas()
Expand Down
2 changes: 1 addition & 1 deletion modin/pandas/test/dataframe/test_reduce.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def test_2195(datetime_is_numeric, has_numeric_column):
[
([np.float64], None),
(np.float64, None),
(None, [np.timedelta64, np.datetime64, np.object, np.bool]),
(None, [np.timedelta64, np.datetime64, np.object, bool]),
(None, "all"),
(None, np.number),
],
Expand Down
6 changes: 3 additions & 3 deletions modin/pandas/test/test_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -1393,16 +1393,16 @@ def test_describe(data):

try:
pandas_result = pandas_series.describe(
include=[np.timedelta64, np.datetime64, np.object, np.bool]
include=[np.timedelta64, np.datetime64, np.object, bool]
)
except Exception as e:
with pytest.raises(type(e)):
modin_series.describe(
include=[np.timedelta64, np.datetime64, np.object, np.bool]
include=[np.timedelta64, np.datetime64, np.object, bool]
)
else:
modin_result = modin_series.describe(
include=[np.timedelta64, np.datetime64, np.object, np.bool]
include=[np.timedelta64, np.datetime64, np.object, bool]
)
df_equals(modin_result, pandas_result)

Expand Down

0 comments on commit a4c3045

Please sign in to comment.