Skip to content

Commit 94a783f

Browse files
committed
fix access of single value that fails with pandas 3
1 parent a075e25 commit 94a783f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

metplotpy/contributed/weather_regime/plot_weather_regime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
def plot_elbow(K,d,mi,line,curve,plot_title,output_plotname):
2626

27-
plt.plot(K[int(mi)],d[mi]*-1,'*k')
27+
plt.plot(K[int(mi.item())],d[mi.item()]*-1,'*k')
2828
plt.plot(K, np.array(curve), 'kx-')
2929
plt.plot(K, line, 'r')
3030
plt.plot(K, d*-1, 'b')

0 commit comments

Comments
 (0)