there's a typo:
This can be achieved by combining sorted and the reindex command (which works for rows or columns) with axis=1, which means the second axis ie columns.
should say:
This can be achieved by combining sorted and the reindex command (which works for rows or columns) with axis=1, which means the second axis (i.e., columns).
there's a typo:
should say: