Skip to content

Instantly share code, notes, and snippets.

@anitaokoh
Last active July 27, 2019 21:08
Show Gist options
  • Save anitaokoh/181fecefdc2e2a58b34b18d015a326b2 to your computer and use it in GitHub Desktop.
Save anitaokoh/181fecefdc2e2a58b34b18d015a326b2 to your computer and use it in GitHub Desktop.
#.....read data
df = pd.read.csv(your_data)
#to select at numeric columns
df.select_dtypes(include=np.number)
#Wrapping it to a variable to get a new dataframe of other numeric features
new_df = df.select_dtypes(include=np.number)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment