panda variables names code example
Example 1: pd dataframe get column names
lst = data.columns.values # data is dataframe
Example 2: how to get column names having numeric value in pandas
cols = df.select_dtypes([np.number]).columns
lst = data.columns.values # data is dataframe
cols = df.select_dtypes([np.number]).columns