Skip to content

Commit

Permalink
Fix arg.
Browse files Browse the repository at this point in the history
  • Loading branch information
caneff committed Sep 12, 2023
1 parent ee7a858 commit fb38399
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion sdks/python/apache_beam/dataframe/frame_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ def wrapper(*args, **kwargs):
f"**{BEAM_SPECIFIC!r}** for details.")


def with_docs_from(base_type: object, name=None, removed_method=False):
def with_docs_from(base_type, name=None, removed_method=False):
"""Decorator that updates the documentation from the wrapped function to
duplicate the documentation from the identically-named method in `base_type`.
Expand Down
7 changes: 0 additions & 7 deletions sdks/python/apache_beam/dataframe/frames_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -813,13 +813,6 @@ def test_append_sort(self):
self._run_test(lambda df1, df2: df2.append(df1, sort=True), df1, df2)
self._run_test(lambda df1, df2: df2.append(df1, sort=False), df1, df2)

@unittest.skipIf(PD_VERSION < (2, 0), 'append removed in Pandas 2.0')
def test_append_raises_pandas_2(self):
df = pd.DataFrame({'A': [1, 1]})

with self.assertRaises(NotImplementedError):
df.append(df)

def test_smallest_largest(self):
df = pd.DataFrame({'A': [1, 1, 2, 2], 'B': [2, 3, 5, 7]})
self._run_test(lambda df: df.nlargest(1, 'A', keep='all'), df)
Expand Down

0 comments on commit fb38399

Please sign in to comment.