File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -134,6 +134,9 @@ Bug fixes
134
134
(:issue: `1116 `).
135
135
By `Yves Delley <https://github.com/burnpanck >`_.
136
136
137
+ - Fixed sub-optimal performance in certain operations with object arrays (:issue: `1121 `).
138
+ By `Yves Delley <https://github.com/burnpanck >`_.
139
+
137
140
.. _whats-new.0.8.2 :
138
141
139
142
v0.8.2 (18 August 2016)
Original file line number Diff line number Diff line change @@ -197,9 +197,8 @@ def is_valid_numpy_dtype(dtype):
197
197
198
198
def to_0d_object_array (value ):
199
199
"""Given a value, wrap it in a 0-D numpy.ndarray with dtype=object."""
200
- result = np .empty ((1 ,), dtype = object )
201
- result [:] = [value ]
202
- result .shape = ()
200
+ result = np .empty ((), dtype = object )
201
+ result [()] = value
203
202
return result
204
203
205
204
You can’t perform that action at this time.
0 commit comments