We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0e59a2 commit a809b3aCopy full SHA for a809b3a
pandas/io/html.py
@@ -103,7 +103,7 @@ def _get_skiprows(skiprows):
103
elif skiprows is None:
104
return 0
105
raise TypeError(
106
- "%r is not a valid type for skipping rows" % type(skiprows).__name__
+ f"'{type(skiprows).__name__}' is not a valid type for skipping rows"
107
)
108
109
@@ -133,7 +133,7 @@ def _read(obj):
133
except (TypeError, ValueError):
134
pass
135
else:
136
- raise TypeError("Cannot read object of type %r" % type(obj).__name__)
+ raise TypeError(f"Cannot read object of type '{type(obj).__name__}'")
137
return text
138
139
0 commit comments