diff --git a/spec/API_specification/dataframe_api/__init__.py b/spec/API_specification/dataframe_api/__init__.py index afca3cb0..b2e15a77 100644 --- a/spec/API_specification/dataframe_api/__init__.py +++ b/spec/API_specification/dataframe_api/__init__.py @@ -17,7 +17,7 @@ "column_from_sequence", "concat", "dataframe_from_dict", - "isnull", + "is_null", "null", ] @@ -99,7 +99,7 @@ class null: From ``__eq__`` and from ``__bool__``. For ``__eq__``: a missing value must not be compared for equality - directly. Instead, use `DataFrame.isnull` or `Column.isnull` to check + directly. Instead, use `DataFrame.is_null` or `Column.is_null` to check for presence of missing values. For ``__bool__``: truthiness of a missing value is ambiguous. @@ -113,7 +113,7 @@ class null: """ ... -def isnull(value: object, /) -> bool: +def is_null(value: object, /) -> bool: """ Check if an object is a `null` scalar. diff --git a/spec/API_specification/dataframe_api/column_object.py b/spec/API_specification/dataframe_api/column_object.py index 3fec189c..bbb62293 100644 --- a/spec/API_specification/dataframe_api/column_object.py +++ b/spec/API_specification/dataframe_api/column_object.py @@ -380,7 +380,7 @@ def var(self, *, skip_nulls: bool = True) -> DType: dtypes. """ - def isnull(self) -> Column: + def is_null(self) -> Column: """ Check for 'missing' or 'null' entries. @@ -390,7 +390,7 @@ def isnull(self) -> Column: See also -------- - isnan + is_nan Notes ----- @@ -399,7 +399,7 @@ def isnull(self) -> Column: but note that the Standard makes no guarantees about them. """ - def isnan(self) -> Column: + def is_nan(self) -> Column: """ Check for nan entries. @@ -409,7 +409,7 @@ def isnan(self) -> Column: See also -------- - isnull + is_null Notes ----- diff --git a/spec/API_specification/dataframe_api/dataframe_object.py b/spec/API_specification/dataframe_api/dataframe_object.py index e348051f..a05355b3 100644 --- a/spec/API_specification/dataframe_api/dataframe_object.py +++ b/spec/API_specification/dataframe_api/dataframe_object.py @@ -667,7 +667,7 @@ def var(self, *, skip_nulls: bool = True) -> DataFrame: """ ... - def isnull(self) -> DataFrame: + def is_null(self) -> DataFrame: """ Check for 'missing' or 'null' entries. @@ -677,7 +677,7 @@ def isnull(self) -> DataFrame: See also -------- - isnan + is_nan Notes ----- @@ -687,7 +687,7 @@ def isnull(self) -> DataFrame: """ ... - def isnan(self) -> DataFrame: + def is_nan(self) -> DataFrame: """ Check for nan entries. @@ -697,7 +697,7 @@ def isnan(self) -> DataFrame: See also -------- - isnull + is_null Notes ----- diff --git a/spec/API_specification/index.rst b/spec/API_specification/index.rst index 16a0cb61..6c69afeb 100644 --- a/spec/API_specification/index.rst +++ b/spec/API_specification/index.rst @@ -14,7 +14,7 @@ of objects and functions in the top-level namespace. The latter are: :nosignatures: __dataframe_api_version__ - isnull + is_null null The ``DataFrame``, ``Column`` and ``GroupBy`` objects have the following