how to get label of dataframe code example Example: python pandas get labels columnsNamesArr = dfObj.columns.values indexNamesArr = dfObj.index.values