We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fea3ff8 commit c0a89c9Copy full SHA for c0a89c9
pandas/tests/test_frame.py
@@ -2556,6 +2556,14 @@ def test_apply_axis1(self):
2556
tapplied = self.frame.apply(np.mean, axis=1)
2557
self.assertEqual(tapplied[d], np.mean(self.frame.xs(d)))
2558
2559
+ def test_apply_ignore_failures(self):
2560
+ result = self.mixed_frame._apply_standard(np.mean, 0,
2561
+ ignore_failures=True)
2562
+ expected = self.mixed_frame._get_numeric_data().apply(np.mean)
2563
+ assert_series_equal(result, expected)
2564
+
2565
+ # test with hierarchical index
2566
2567
def test_applymap(self):
2568
applied = self.frame.applymap(lambda x: x * 2)
2569
assert_frame_equal(applied, self.frame * 2)
0 commit comments