@property
def columns(self) -> pd.Index:
    'The column labels of the DataFrame.'
    names = [(name if ((name is None) or (len(name) > 1)) else name[0]) for name in self._internal.column_label_names]
    if (self._internal.column_labels_level > 1):
        columns = pd.MultiIndex.from_tuples(self._internal.column_labels, names=names)
    else:
        columns = pd.Index([label[0] for label in self._internal.column_labels], name=names[0])
    return columns
The column labels of the DataFrame.
@property
def columns(self) -> pd.Index:
    
    names = [(name if ((name is None) or (len(name) > 1)) else name[0]) for name in self._internal.column_label_names]
    if (self._internal.column_labels_level > 1):
        columns = pd.MultiIndex.from_tuples(self._internal.column_labels, names=names)
    else:
        columns = pd.Index([label[0] for label in self._internal.column_labels], name=names[0])
    return columns