Skip to content

Commit

Permalink
more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromedockes committed Nov 17, 2023
1 parent 2e6e19c commit 1be7187
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions skrub/_dataframe/tests/test_common.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from skrub._dataframe import skrubns, std, stdns


def test_std(px):
df = px.DataFrame({"A": [1, 2]})
assert hasattr(std(df), "dataframe")
assert hasattr(stdns(df), "dataframe_from_columns")
ns = skrubns(df)
s = ns.make_series([1, 2], name="A")
assert hasattr(std(s), "column")
assert hasattr(stdns(s), "dataframe_from_columns")

0 comments on commit 1be7187

Please sign in to comment.