From a5f3218f39cb0078f193debc22ea61d74ca82593 Mon Sep 17 00:00:00 2001 From: Stijn de Gooijer Date: Mon, 7 Aug 2023 22:55:11 +0200 Subject: [PATCH] Remove `nan_as_null` parameter for DataFrame protocol --- protocol/dataframe_protocol.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/protocol/dataframe_protocol.py b/protocol/dataframe_protocol.py index 209072be..aedf49b7 100644 --- a/protocol/dataframe_protocol.py +++ b/protocol/dataframe_protocol.py @@ -392,15 +392,11 @@ class DataFrame(ABC): @abstractmethod def __dataframe__( - self, nan_as_null: bool = False, allow_copy: bool = True + self, allow_copy: bool = True ) -> "DataFrame": """ Construct a new exchange object, potentially changing the parameters. - ``nan_as_null`` is a keyword intended for the consumer to tell the - producer to overwrite null values in the data with ``NaN``. - It is intended for cases where the consumer does not support the bit - mask or byte mask that is the producer's native representation. ``allow_copy`` is a keyword that defines whether or not the library is allowed to make a copy of the data. For example, copying data would be necessary if a library supports strided buffers, given that this protocol