From 64211725a7fd04ad3e46420a704333dd83d9a9c2 Mon Sep 17 00:00:00 2001 From: vc1492a Date: Tue, 5 Nov 2024 19:22:52 -0800 Subject: [PATCH] update iris example code for latest pandas convention --- readme.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/readme.md b/readme.md index 7ba30d7..a0f8d7f 100644 --- a/readme.md +++ b/readme.md @@ -159,8 +159,7 @@ Now let's create two sets of Iris data for scoring; one with clustering and the ```python # import the data and remove any non-numeric columns -iris = pd.DataFrame(data('iris')) -iris = pd.DataFrame(iris.drop('Species', 1)) +iris = pd.DataFrame(data('iris').drop(columns=['Species'])) ``` Next, let's cluster the data using DBSCAN and generate two sets of scores. On both cases, we will use the default