Created
September 27, 2018 18:30
-
-
Save mattharrison/16f396ab992d7275c4a080078b9062b2 to your computer and use it in GitHub Desktop.
Load mushrooms
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cols = 'class,cap_shape,cap_surface,cap_color,bruises,'\ | |
| 'odor,g_attachment,g_spacing,g_size,g_color,s_shape,'\ | |
| 's_root,s_surface_a,s_surface_b,s_color_a,s_color_b,'\ | |
| 'v_type,v_color,ring_num,ring_type,spore_color,pop,hab'.split(',') | |
| mush_df = pd.get_dummies(pd.read_csv('../data/agaricus-lepiota.data.txt', names=cols)) | |
| mush_df |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment