Python Pandas JS Equivalent

This recent post might help.