cudf.DataFrame.flags#

property DataFrame.flags: Flags[source]#

Get the properties associated with this cudf object.

The available flags are

  • pandas.Flags.allows_duplicate_labels

See also

pandas.Flags

Flags that apply to cudf objects.

DataFrame.attrs

Global metadata applying to this dataset.

Notes

“Flags” differ from “metadata”. Flags reflect properties of the Series or DataFrame (e.g. whether it allows duplicate labels). Metadata refer to properties of the dataset, and should be stored in DataFrame.attrs.

Examples

>>> import cudf
>>> df = cudf.DataFrame({"A": [1, 2]})
>>> df.flags
<Flags(allows_duplicate_labels=True)>

Flags can be set via set_flags or by directly mutating the pandas.Flags object:

>>> df.flags.allows_duplicate_labels = False
>>> df.flags
<Flags(allows_duplicate_labels=False)>