Skip to content

Commit 16dea0b

Browse files
authored
Clarify __dataframe_standard__, introduce __column_standard__ (#192)
1 parent 2c94312 commit 16dea0b

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

protocol/purpose_and_scope.md

-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ def somefunc(df, ...):
7676
# From now on, use `df` methods and `namespace` functions/objects
7777
```
7878

79-
8079
### History
8180

8281
Dataframe libraries in several programming language exist, such as

spec/purpose_and_scope.md

+8
Original file line numberDiff line numberDiff line change
@@ -359,3 +359,11 @@ completed such an implementation may, and are encouraged to, provide details on
359359
the level of (non-)conformance. For details on how to do this, see
360360
[Verification - measuring conformance](verification_test_suite.md).
361361

362+
Libraries which implement the Standard in a separate namespace
363+
are required to provide the following methods:
364+
- ``__dataframe_standard__``: used for converting a non-compliant dataframe to a compliant one;
365+
- ``__column_standard__``: used for converting a non-compliant column to a compliant one.
366+
367+
For example, pandas would have ``pandas.DataFrame.__dataframe_standard__`` and
368+
``pandas.Series.__column_standard__``.
369+

0 commit comments

Comments
 (0)