python pandas get labels code example Example: python pandas get labels columnsNamesArr = dfObj.columns.values indexNamesArr = dfObj.index.values