diff --git a/protocol/purpose_and_scope.md b/protocol/purpose_and_scope.md index 70dba143..79c0261b 100644 --- a/protocol/purpose_and_scope.md +++ b/protocol/purpose_and_scope.md @@ -76,7 +76,6 @@ def somefunc(df, ...): # From now on, use `df` methods and `namespace` functions/objects ``` - ### History Dataframe libraries in several programming language exist, such as diff --git a/spec/purpose_and_scope.md b/spec/purpose_and_scope.md index a08025a6..01684752 100644 --- a/spec/purpose_and_scope.md +++ b/spec/purpose_and_scope.md @@ -359,3 +359,11 @@ completed such an implementation may, and are encouraged to, provide details on the level of (non-)conformance. For details on how to do this, see [Verification - measuring conformance](verification_test_suite.md). +Libraries which implement the Standard in a separate namespace +are required to provide the following methods: +- ``__dataframe_standard__``: used for converting a non-compliant dataframe to a compliant one; +- ``__column_standard__``: used for converting a non-compliant column to a compliant one. + +For example, pandas would have ``pandas.DataFrame.__dataframe_standard__`` and +``pandas.Series.__column_standard__``. +