Skip to content

Commit

Permalink
column namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromedockes committed Nov 17, 2023
1 parent a9ac96d commit 2e6e19c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions skrub/_dataframe/_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,8 @@ def std(obj):
return obj.__column_consortium_standard__()


def stdns(dataframe):
return dataframe.__dataframe_consortium_standard__().__dataframe_namespace__()
def stdns(obj):
try:
return obj.__dataframe_consortium_standard__().__dataframe_namespace__()
except AttributeError:
return obj.__column_consortium_standard__().__column_namespace__()

Check warning on line 22 in skrub/_dataframe/_common.py

View check run for this annotation

Codecov / codecov/patch

skrub/_dataframe/_common.py#L21-L22

Added lines #L21 - L22 were not covered by tests

0 comments on commit 2e6e19c

Please sign in to comment.