diff --git a/sagemaker-pipelines/tabular/train-register-deploy-pipeline-model/train register and deploy a pipeline model.ipynb b/sagemaker-pipelines/tabular/train-register-deploy-pipeline-model/train register and deploy a pipeline model.ipynb index 2fbf96183d..2b7f52f0ef 100644 --- a/sagemaker-pipelines/tabular/train-register-deploy-pipeline-model/train register and deploy a pipeline model.ipynb +++ b/sagemaker-pipelines/tabular/train-register-deploy-pipeline-model/train register and deploy a pipeline model.ipynb @@ -1130,7 +1130,7 @@ "data = data.drop(\"medianHouseValue\", axis=1)\n", "\n", "pred_count = 10\n", - "payload = data.iloc[:pred_count].to_string(header=False, index=False).replace(\" \", \",\")\n", + "payload = data.iloc[:pred_count].to_csv(header=False, index=False)\n", "p = predictor.predict(payload, initial_args={\"ContentType\": \"text/csv\"})\n", "print(p.decode(\"utf-8\"))" ] @@ -1231,4 +1231,4 @@ }, "nbformat": 4, "nbformat_minor": 4 -} \ No newline at end of file +}