Skip to content

Commit 628b62c

Browse files
committed
add read_parquet to top-level
1 parent 7a67698 commit 628b62c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

pandas/io/api.py

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
from pandas.io.sql import read_sql, read_sql_table, read_sql_query
1414
from pandas.io.sas import read_sas
1515
from pandas.io.feather_format import read_feather
16+
from pandas.io.parquet import read_parquet
1617
from pandas.io.stata import read_stata
1718
from pandas.io.pickle import read_pickle, to_pickle
1819
from pandas.io.packers import read_msgpack, to_msgpack

pandas/tests/io/test_parquet.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,9 @@ def check_round_trip(self, df, engine, expected=None, **kwargs):
7070
expected = df
7171
tm.assert_frame_equal(result, expected)
7272

73+
# repeat
7374
to_parquet(df, path, engine, **kwargs)
74-
result = read_parquet(path, engine)
75+
result = pd.read_parquet(path, engine)
7576

7677
if expected is None:
7778
expected = df

0 commit comments

Comments
 (0)