From 628b62cce7583a4cee405f2f3d389b2c756e0531 Mon Sep 17 00:00:00 2001 From: Jeff Reback Date: Fri, 31 Mar 2017 11:52:58 -0400 Subject: [PATCH] add read_parquet to top-level --- pandas/io/api.py | 1 + pandas/tests/io/test_parquet.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pandas/io/api.py b/pandas/io/api.py index e312e7bc2f300f..a7daec9ade6fc3 100644 --- a/pandas/io/api.py +++ b/pandas/io/api.py @@ -13,6 +13,7 @@ from pandas.io.sql import read_sql, read_sql_table, read_sql_query from pandas.io.sas import read_sas from pandas.io.feather_format import read_feather +from pandas.io.parquet import read_parquet from pandas.io.stata import read_stata from pandas.io.pickle import read_pickle, to_pickle from pandas.io.packers import read_msgpack, to_msgpack diff --git a/pandas/tests/io/test_parquet.py b/pandas/tests/io/test_parquet.py index 1807411c1bde58..d8fcd710487460 100644 --- a/pandas/tests/io/test_parquet.py +++ b/pandas/tests/io/test_parquet.py @@ -70,8 +70,9 @@ def check_round_trip(self, df, engine, expected=None, **kwargs): expected = df tm.assert_frame_equal(result, expected) + # repeat to_parquet(df, path, engine, **kwargs) - result = read_parquet(path, engine) + result = pd.read_parquet(path, engine) if expected is None: expected = df