jorisvandenbossche commented on pull request #8952:
URL: https://github.com/apache/arrow/pull/8952#issuecomment-747582175
There is still a failure, but a different one now:
```
_________________ TestConvertMetadata.test_mixed_column_names
__________________
self = <pyarrow.tests.test_pandas.TestConvertMetadata object at
0x7f8ee85413c0>
def test_mixed_column_names(self):
# mixed type column names are not reconstructed exactly
df = pd.DataFrame({'a': [1, 2], 'b': [3, 4]})
for cols in [['あ', b'a'], [1, '2'], [1, 1.5]]:
df.columns = pd.Index(cols, dtype=object)
# assert that the from_pandas raises the warning
with pytest.warns(UserWarning):
pa.Table.from_pandas(df)
expected = df.copy()
expected.columns = df.columns.astype(str)
with pytest.warns(UserWarning):
_check_pandas_roundtrip(df, expected=expected,
> preserve_index=True)
opt/conda/envs/arrow/lib/python3.7/site-packages/pyarrow/tests/test_pandas.py:422:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _
opt/conda/envs/arrow/lib/python3.7/site-packages/pyarrow/tests/test_pandas.py:102:
in _check_pandas_roundtrip
else False))
pandas/_libs/testing.pyx:46: in pandas._libs.testing.assert_almost_equal
???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _
> ???
E AssertionError: DataFrame.columns are different
E
E DataFrame.columns values are different (50.0 %)
E [left]: Index(['あ', 'a'], dtype='object')
E [right]: Index(['あ', 'b'a''], dtype='object')
pandas/_libs/testing.pyx:161: AssertionError
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]