Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: caught typeError in series.at (#25506) #25533

Merged
merged 9 commits into from Mar 5, 2019
2 changes: 1 addition & 1 deletion doc/source/whatsnew/v0.25.0.rst
Expand Up @@ -150,7 +150,7 @@ Timezones

- Bug in :func:`to_datetime` with ``utc=True`` and datetime strings that would apply previously parsed UTC offsets to subsequent arguments (:issue:`24992`)
- Bug in :func:`Timestamp.tz_localize` and :func:`Timestamp.tz_convert` does not propagate ``freq`` (:issue:`25241`)
-
- Bug in :func:`series.at` where Setting Timestamp with timezone raises TypeError (:issue:`25506`)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capitalize Series, lowercase setting, :class:`Timestamp`, and double backticks around TypeError

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, will update it accordingly


Numeric
^^^^^^^
Expand Down
2 changes: 1 addition & 1 deletion pandas/core/series.py
Expand Up @@ -1229,7 +1229,7 @@ def _set_value(self, label, value, takeable=False):
self._values[label] = value
else:
self.index._engine.set_value(self._values, label, value)
except KeyError:
except (KeyError, TypeError):

# set using a non-recursive method
self.loc[label] = value
Expand Down