Relocating

We wish to change the locations of the columns of a data frame.

This section is organized as follows:

  • Basic Relocating: Obtain a set of columns of a data frame, that contains some or all columns, sorted in a given order.
  • Relative Relocating: Relocate one or more columns relative to the current column locations while keeping all other column locations relatively unchanged; e.g. relocate a particular column to the leftmost position.
  • Implicit Relocating: We do not explicitly specify the columns we wish to relocate by name or position, rather we refer to them implicitly; e.g. relocate categorical columns before numerical columns.
PYTHON
I/O