error when applying function to a series object

Try return min(columnrow), and change df['a'].apply(...) to df.apply(...)['a']. (Why not df['a'].min()?)

Leave a Comment