get the indices of a pandas DataFrame as a list or a NumPy array

welcome to shbcf.ru