class_docstr: A buffer object backed by a Polars Series consisting of a single chunk.
  
  Parameters
  ----------
  data
      The Polars Series backing the buffer object.
  allow_copy
      Allow data to be copied during operations on this column. If set to `False`,
      a RuntimeError will be raised if data would be copied.
class_docstr_tok: ["A","buffer","object","backed","by","a","Polars","Series","consisting","of","a","single","chunk",".","Parameters","--","--","--","--","--","data","The","Polars","Series","backing","the","buffer","object",".","allow_copy","Allow","data","to","be","copied","during","operations","on","this","column",".","If","set","to","`","False","`",",","a","RuntimeError","will","be","raised","if","data","would","be","copied","."]
code: def __init__(self, data: Series, *, allow_copy: bool = True):
      if data.n_chunks() > 1:
          if not allow_copy:
              raise CopyNotAllowedError(
                  "non-contiguous buffer must be made contiguous"
              )
          data = data.rechunk()
  
      self._data = data
  
file_path: polars/py-polars/polars/interchange/buffer.py
imports: from __future__ import annotations
  from typing import TYPE_CHECKING
  from polars.interchange.protocol import Buffer, CopyNotAllowedError, DlpackDeviceType, DtypeKind
  from polars.interchange.utils import polars_dtype_to_dtype
label_desc: Use image node_id 1 to create a new PolarsBuffer object from inherited base classes: Buffer with example: obj = PolarsBuffer(data)