Skip to content

Commit

Permalink
Solve AioClientCreator error in EnsembleLearnerCensusIncome.ipynb (aw…
Browse files Browse the repository at this point in the history
…s#3098)

* fix file import

* reformat code

* upgrade pandas

* removing awewrangler due to pandas incompatibility

* code reformat

* cleanup import

Co-authored-by: EC2 Default User <[email protected]>
  • Loading branch information
atqy and EC2 Default User authored Jan 20, 2022
1 parent e4a44ee commit 35398a3
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,13 @@
"outputs": [],
"source": [
"## read the data\n",
"data = pd.read_csv(\"s3://sagemaker-sample-files/datasets/tabular/uci_adult/adult.data\", header=None)\n",
"! aws s3 cp s3://sagemaker-sample-files/datasets/tabular/uci_adult/adult.data .\n",
"data = pd.read_csv(\"adult.data\", header=None)\n",
"\n",
"## read test data\n",
"! aws s3 cp s3://sagemaker-sample-files/datasets/tabular/uci_adult/adult.test .\n",
"data_test = pd.read_csv(\n",
" \"s3://sagemaker-sample-files/datasets/tabular/uci_adult/adult.test\",\n",
" \"adult.test\",\n",
" header=None,\n",
" skiprows=1,\n",
")\n",
Expand Down Expand Up @@ -1192,4 +1194,4 @@
},
"nbformat": 4,
"nbformat_minor": 4
}
}

0 comments on commit 35398a3

Please sign in to comment.