Skip to content

Commit

Permalink
pragma no cover
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-joshi committed Oct 11, 2024
1 parent f4c40d8 commit 7618457
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1530,7 +1530,7 @@ def __getitem__(self, key):
return self.loc[:, key]


# Modin uses the unique() query compiler method as of 0.30.1.
# Modin uses the unique() query compiler method instead of aliasing the duplicated frontend method as of 0.30.1.
@register_base_override("drop_duplicates")
def drop_duplicates(
self, keep="first", inplace=False, **kwargs
Expand All @@ -1544,7 +1544,7 @@ def drop_duplicates(
if subset is not None:
if is_list_like(subset):
if not isinstance(subset, list):
subset = list(subset)
subset = list(subset) # pragma: no cover
else:
subset = [subset]
df = self[subset]
Expand All @@ -1555,7 +1555,7 @@ def drop_duplicates(
if ignore_index:
result.index = pandas.RangeIndex(stop=len(result))
if inplace:
self._update_inplace(result._query_compiler)
self._update_inplace(result._query_compiler) # pragma: no cover
else:
return result

Expand Down

0 comments on commit 7618457

Please sign in to comment.