Answers for "list columns python"

7

pd dataframe get column names

lst = data.columns.values     # data is dataframe
Posted by: Guest on April-27-2020
0

how to get column names having numeric value in pandas

cols = df.select_dtypes([np.number]).columns
Posted by: Guest on November-28-2020

Python Answers by Framework

Browse Popular Code Answers by Language