From cad8aad6e320e25c2d73d346a5243029866e6190 Mon Sep 17 00:00:00 2001 From: Patrick Hoefler <61934744+phofl@users.noreply.github.com> Date: Mon, 27 Nov 2023 22:21:35 +0100 Subject: [PATCH] Update base.py --- pandas/core/internals/base.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pandas/core/internals/base.py b/pandas/core/internals/base.py index ee45707791fbf..5ac82c25bcde9 100644 --- a/pandas/core/internals/base.py +++ b/pandas/core/internals/base.py @@ -54,6 +54,11 @@ class _AlreadyWarned: def __init__(self): + # This class is used on the manager level to the block level to + # ensure that we warn only once. The block method can update the + # warned_already option without returning a value to keep the + # interface consistent. This is only a temporary solution for + # CoW warnings. self.warned_already = False