You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's stated in the documentation, but I find this behavior to be rather wart-y, and it led to some bugs in statsmodels. Why treat x array different from x sequence of lists?
For an array it iterates over the first axis
import numpy as np
import matplotlib.pyplot as plt
x = np.random.normal(size=(2,1000))
fig, ax = plt.subplots()
ax.boxplot(x.T)
From the general mpl and python standpoints, I agree entirely with @jseabold. It is unfortunate that this aspect of the signature is present; the question is what, if anything, to do about it now.
It's stated in the documentation, but I find this behavior to be rather wart-y, and it led to some bugs in statsmodels. Why treat x array different from x sequence of lists?
For an array it iterates over the first axis
for lists it iterates over the zero axis
Why the distinction? I'd expect them to be the same (i.e., the list gets an np.asarray call) and it seems inconsistent that they're not.
The text was updated successfully, but these errors were encountered: