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.FlagsFlags that apply to cudf objects.
DataFrame.attrsGlobal metadata applying to this dataset.
Notes
“Flags” differ from “metadata”. Flags reflect properties of the
SeriesorDataFrame(e.g. whether it allows duplicate labels). Metadata refer to properties of the dataset, and should be stored inDataFrame.attrs.Examples
>>> import cudf >>> df = cudf.DataFrame({"A": [1, 2]}) >>> df.flags <Flags(allows_duplicate_labels=True)>
Flags can be set via
set_flagsor by directly mutating thepandas.Flagsobject:>>> df.flags.allows_duplicate_labels = False >>> df.flags <Flags(allows_duplicate_labels=False)>