Skip to content

Commit b7ca04a

Browse files
committed
chore: update logic for dataframe with no cols
1 parent 886be38 commit b7ca04a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/ydata_profiling/utils/logger.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ def __init__(self, name: str, level: int = logging.INFO):
1818
super().__init__(name, level)
1919

2020
def info_def_report(self, df, timeseries: bool) -> None: # noqa: ANN001
21-
ncols = len(df.columns)
21+
try:
22+
ncols = len(df.columns)
23+
except AttributeError:
24+
ncols=0
25+
2226
if isinstance(df, pd.DataFrame):
2327
dataframe = "pandas"
2428
report_type = "regular"

0 commit comments

Comments
 (0)