Created
April 30, 2022 03:49
-
-
Save hucodelab/0291e720270dceb715394cb65335453d to your computer and use it in GitHub Desktop.
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
| # load a toy dataframe from https://scikit-learn.org/stable/datasets/toy_dataset.html | |
| cancer = load_breast_cancer() | |
| # convert the data into a numpy array | |
| cancer_data = np.array(cancer.data) | |
| # converting to pandas dataframe | |
| df_cancer = pd.DataFrame(cancer_data, columns=cancer.feature_names) | |
| df_cancer.head() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment