From de20c17626d342b1ddfea9a58c27e02b73073fa4 Mon Sep 17 00:00:00 2001 From: Kozo Nishida Date: Wed, 13 Jan 2016 00:58:14 +0900 Subject: [PATCH] retrieve binary.csv with open-uri --- .../Logistic Regression with daru and statsample-glm.ipynb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Data Analysis/Logistic Regression with daru and statsample-glm.ipynb b/Data Analysis/Logistic Regression with daru and statsample-glm.ipynb index 7e79f47..2487527 100644 --- a/Data Analysis/Logistic Regression with daru and statsample-glm.ipynb +++ b/Data Analysis/Logistic Regression with daru and statsample-glm.ipynb @@ -123,6 +123,9 @@ } ], "source": [ + "require 'open-uri'\n", + "content = open('http://www.ats.ucla.edu/stat/data/binary.csv')\n", + "File.write('binary.csv', content.read)\n", "df = Daru::DataFrame.from_csv \"binary.csv\"" ] },