Skip to content

Commit 43ef1fa

Browse files
authored
update describe.py
1 parent c171633 commit 43ef1fa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/core/methods/describe.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,8 @@ def describe(self, percentiles: Sequence[float] | np.ndarray) -> DataFrame:
173173

174174
col_names = reorder_columns(ldesc)
175175
if len(ldesc) == 0:
176-
raise ValueError("None of the included dtypes are present in the DataFrame")
176+
msg = "None of the included dtypes are present in the DataFrame"
177+
raise ValueError(msg)
177178
d = concat(
178179
[x.reindex(col_names) for x in ldesc],
179180
axis=1,

0 commit comments

Comments
 (0)