Skip to content

Commit

Permalink
Fix loc (#270)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewgsavage authored Jan 6, 2025
1 parent 8c2fc78 commit ad3bb18
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
14 changes: 13 additions & 1 deletion CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,19 @@ pint-pandas Changelog
=====================


0.7 (unreleased)
0.8 (unreleased)
--------------------

nothing yet


0.7.1 (2025-01-06)
--------------------

- Fix bug preventing assignment via .loc fails for subsets of columns


0.7 (2025-01-04)
--------------------

- Added `__array_function__` support for numpy fuctions like clip.
Expand Down
7 changes: 0 additions & 7 deletions bors.toml

This file was deleted.

2 changes: 2 additions & 0 deletions pint_pandas/pint_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,8 @@ def _convert_np_result(self, result):
return result
elif pd.api.types.is_bool_dtype(result):
return result
elif isinstance(result, numbers.Number):
return result
else:
# one return value
return type(self)(result)
Expand Down

0 comments on commit ad3bb18

Please sign in to comment.