-
-
Notifications
You must be signed in to change notification settings - Fork 19.4k
Closed
Labels
Milestone
Description
NumPy changed the name of np.min from Amin to min, which causes failures for operations like:
df = pd.DataFrame({"A": [1, 2, 1, 2], "B": [1, 2, 3, 4], "C": [3, 4, 5, 6]})
result = df.agg(
foo=("A", min),
bar=("A", np.min),
cat=("B", max),
)
It looks like we apply the user given names too late, we are doing a reindex before which causes failures.