Slide 23
Slide 23 text
array([[1, 4, True],
[2, 5, False],
[3, 6, True]], dtype=object)
df.index.get_indexer(['b', 'a', ‘c'])
• Step by step:
df.values
Code Example: Reindex
np.take(df.values, [1, 0, 2], axis=0)
(FUJOUFSOBMOEBSSBZ
array([1, 0, 2]) (FUNBQQJOHCFUXFFOHJWFOMBCFMT
BOEDVSSFOUJOEFY OFYUTMJEF
array([[2, 5, False],
[1, 4, True],
[3, 6, True]], dtype=object)
3FPSEFSCZMPDBUJPO