how to get the name of a pandas dataframe variable code example Example: how to get column names having numeric value in pandas cols = df.select_dtypes([np.number]).columns