Skip to content

Commit

Permalink
Merge branch 'remove_append' into kw_only
Browse files Browse the repository at this point in the history
  • Loading branch information
caneff committed Sep 12, 2023
2 parents 758c390 + fb38399 commit 96607db
Showing 1 changed file with 0 additions and 7 deletions.
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 96607db

Please sign in to comment.