Skip to content

Commit 477e4c2

Browse files
committed
add strings around values
1 parent 55ad26a commit 477e4c2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pandas/core/window/rolling.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,9 @@ def __getattr__(self, attr):
163163
if attr in self.obj:
164164
return self[attr]
165165

166-
raise AttributeError(f"{type(self).__name__} object has no attribute {attr}")
166+
raise AttributeError(
167+
f"'{type(self).__name__}' object has no attribute '{attr}'"
168+
)
167169

168170
def _dir_additions(self):
169171
return self.obj._dir_additions()

0 commit comments

Comments
 (0)