You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Valentyn Tymofieiev (Jira)" <ji...@apache.org> on 2021/04/06 23:40:00 UTC
[jira] [Created] (BEAM-12113) Some Dataframe tests are flaky:
AttributeError: 'DataFrame' object has no attribute
Valentyn Tymofieiev created BEAM-12113:
------------------------------------------
Summary: Some Dataframe tests are flaky: AttributeError: 'DataFrame' object has no attribute
Key: BEAM-12113
URL: https://issues.apache.org/jira/browse/BEAM-12113
Project: Beam
Issue Type: Bug
Components: test-failures
Reporter: Valentyn Tymofieiev
Assignee: Brian Hulette
Sample error:
{noformat}
Error Message
AttributeError: 'DataFrame' object has no attribute 'val'
Stacktrace
self = <apache_beam.dataframe.transforms_test.TransformTest testMethod=test_scalar>
def test_scalar(self):
with expressions.allow_non_parallel_operations():
a = pd.Series([1, 2, 6])
self.run_scenario(a, lambda a: a.agg(sum))
self.run_scenario(a, lambda a: a / a.agg(sum))
# Tests scalar being used as an input to a downstream stage.
df = pd.DataFrame({'key': ['a', 'a', 'b'], 'val': [1, 2, 6]})
self.run_scenario(
> df, lambda df: df.groupby('key').sum().val / df.val.agg(sum))
apache_beam/dataframe/transforms_test.py:173:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
apache_beam/dataframe/transforms_test.py:76: in run_scenario
expected = func(input)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
df = key val
0 a 1
1 a 2
2 b 6
> df, lambda df: df.groupby('key').sum().val / df.val.agg(sum))
E AttributeError: 'DataFrame' object has no attribute 'val'
apache_beam/dataframe/transforms_test.py:173: AttributeError
{noformat}
Other tests that failed in the same run (https://ci-beam.apache.org/job/beam_PreCommit_Python_Phrase/2419/):
apache_beam.dataframe.schemas_test.SchemasTest.test_bytes_proxy_roundtrip
apache_beam.dataframe.transforms_test.TransformTest.test_groupby_sum_mean
--
This message was sent by Atlassian Jira
(v8.3.4#803005)