Skip to content

Commit

Permalink
Fix style.
Browse files Browse the repository at this point in the history
  • Loading branch information
bdice committed Jan 26, 2022
1 parent 188e5ed commit 64e792f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions python/cudf/cudf/core/indexed_frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -1298,19 +1298,15 @@ def dropna(
0 Alfred Batmobile 1940-04-25
"""
if axis == 0:
result = self._drop_na_rows(
how=how, subset=subset, thresh=thresh
)
result = self._drop_na_rows(how=how, subset=subset, thresh=thresh)
else:
result = self._drop_na_columns(
how=how, subset=subset, thresh=thresh
)

return self._mimic_inplace(result, inplace=inplace)

def _drop_na_rows(
self, how="any", subset=None, thresh=None
):
def _drop_na_rows(self, how="any", subset=None, thresh=None):
"""
Drop null rows from `self`.
Expand Down
2 changes: 1 addition & 1 deletion python/cudf/cudf/tests/test_dropna.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,4 +289,4 @@ def test_dropna_multiindex_2(data, how):
expect = pi.dropna(how)
got = gi.dropna(how)

assert_eq(expect, got)
assert_eq(expect, got)

0 comments on commit 64e792f

Please sign in to comment.