Skip to content

Commit

Permalink
import from_dataframe (#922)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr-Irv committed May 13, 2024
1 parent ad4066a commit feebd47
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_api_types.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -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,
)

0 comments on commit feebd47

Please sign in to comment.