Skip to content
This repository was archived by the owner on May 7, 2026. It is now read-only.

Commit 15e0382

Browse files
committed
fix: avoid accessing dtypes in DataFrame.columns to prevent premature warnings
1 parent fd978af commit 15e0382

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bigframes/dataframe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ def dtypes(self) -> pandas.Series:
325325

326326
@property
327327
def columns(self) -> pandas.Index:
328-
return self.dtypes.index
328+
return pandas.Index(self._block.column_labels)
329329

330330
@columns.setter
331331
def columns(self, labels: pandas.Index):

0 commit comments

Comments
 (0)