Skip to content

Commit e94d923

Browse files
CameronTStarkwholmgren
authored andcommitted
replace Pandas item() implementation with numpy's using .values (#797)
* replace Pandas item() implementation with numpy's using .values * force value to np.ndarray to enable universal use of .item()
1 parent 2f124d9 commit e94d923

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pvlib/tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ def _scalar_out(input):
212212
else: #
213213
# works if it's a 1 length array and
214214
# will throw a ValueError otherwise
215-
output = input.item()
215+
output = np.asarray(input).item()
216216

217217
return output
218218

0 commit comments

Comments
 (0)