Skip to content

Commit feebd47

Browse files
authored
import from_dataframe (#922)
1 parent ad4066a commit feebd47

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_api_types.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import numpy as np
22
import pandas as pd
33
from pandas.api.extensions import ExtensionDtype
4+
from pandas.api.interchange import from_dataframe
45
import pandas.api.types as api
56
from typing_extensions import assert_type
67

@@ -407,8 +408,9 @@ def check_ext_dtype(etype: type[ExtensionDtype]):
407408

408409

409410
def test_from_dataframe() -> None:
411+
410412
# GH 712
411413
check(
412-
assert_type(pd.api.interchange.from_dataframe(dframe), pd.DataFrame),
414+
assert_type(from_dataframe(dframe), pd.DataFrame),
413415
pd.DataFrame,
414416
)

0 commit comments

Comments
 (0)