This is an automated email from the ASF dual-hosted git repository. wesm pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/master by this push: new 30ab43f ARROW-2124: [Python] Add test for empty item in array 30ab43f is described below commit 30ab43f2c0ddafec9b7e572a463681dec9ac239d Author: Uwe L. Korn <uw...@xhochy.com> AuthorDate: Mon Feb 12 16:24:52 2018 -0500 ARROW-2124: [Python] Add test for empty item in array Author: Uwe L. Korn <uw...@xhochy.com> Closes #1586 from xhochy/ARROW-2124 and squashes the following commits: 1f93916a [Uwe L. Korn] ARROW-2124: [Python] Add test for empty item in array --- python/pyarrow/tests/test_convert_pandas.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/python/pyarrow/tests/test_convert_pandas.py b/python/pyarrow/tests/test_convert_pandas.py index 026cd25..b73522d 100644 --- a/python/pyarrow/tests/test_convert_pandas.py +++ b/python/pyarrow/tests/test_convert_pandas.py @@ -800,6 +800,14 @@ class TestPandasConversion(object): field = schema.field_by_name(column) _check_array_roundtrip(df[column], type=field.type) + def test_column_of_lists_first_empty(self): + # ARROW-2124 + num_lists = [[], [2, 3, 4], [3, 6, 7, 8], [], [2]] + series = pd.Series([np.array(s, dtype=float) for s in num_lists]) + arr = pa.array(series) + result = pd.Series(arr.to_pandas()) + tm.assert_series_equal(result, series) + def test_column_of_lists_chunked(self): # ARROW-1357 df = pd.DataFrame({ -- To stop receiving notification emails like this one, please contact w...@apache.org.