You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by we...@apache.org on 2018/12/31 16:44:14 UTC
[arrow] branch master updated: ARROW-4135: [Python] Can't reload a
pandas dataframe containing a list of datetime.time
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 7b12202 ARROW-4135: [Python] Can't reload a pandas dataframe containing a list of datetime.time
7b12202 is described below
commit 7b122024303973c5594efc6eb6c77bf17fe1570e
Author: Krisztián Szűcs <sz...@gmail.com>
AuthorDate: Mon Dec 31 10:43:58 2018 -0600
ARROW-4135: [Python] Can't reload a pandas dataframe containing a list of datetime.time
Reproduced via 0.11.1
Author: Krisztián Szűcs <sz...@gmail.com>
Closes #3289 from kszucs/ARROW-4135 and squashes the following commits:
70ca3e08 <Krisztián Szűcs> missign arg
511808bd <Krisztián Szűcs> forgot to uncomment
3093957f <Krisztián Szűcs> test
---
python/pyarrow/tests/test_parquet.py | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/python/pyarrow/tests/test_parquet.py b/python/pyarrow/tests/test_parquet.py
index 9f05170..3a6c846 100644
--- a/python/pyarrow/tests/test_parquet.py
+++ b/python/pyarrow/tests/test_parquet.py
@@ -921,6 +921,14 @@ def test_date_time_types():
_assert_unsupported(a7)
+def test_list_of_datetime_time_roundtrip():
+ # ARROW-4135
+ times = pd.to_datetime(['09:00', '09:30', '10:00', '10:30', '11:00',
+ '11:30', '12:00'])
+ df = pd.DataFrame({'time': [times.time]})
+ _roundtrip_pandas_dataframe(df, write_kwargs={})
+
+
def test_large_list_records():
# This was fixed in PARQUET-1100