From 8ef6cc2e1be8b412ed707051d516cc66f7942172 Mon Sep 17 00:00:00 2001 From: Irv Lustig Date: Mon, 13 May 2024 15:03:18 -0400 Subject: [PATCH] import from_dataframe --- tests/test_api_types.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_api_types.py b/tests/test_api_types.py index a17a937de..0bbc29ae6 100644 --- a/tests/test_api_types.py +++ b/tests/test_api_types.py @@ -1,6 +1,7 @@ import numpy as np import pandas as pd from pandas.api.extensions import ExtensionDtype +from pandas.api.interchange import from_dataframe import pandas.api.types as api from typing_extensions import assert_type @@ -407,8 +408,9 @@ def check_ext_dtype(etype: type[ExtensionDtype]): def test_from_dataframe() -> None: + # GH 712 check( - assert_type(pd.api.interchange.from_dataframe(dframe), pd.DataFrame), + assert_type(from_dataframe(dframe), pd.DataFrame), pd.DataFrame, )