From 2efc354f4caccf30fcdca557428ba8d1f68935a4 Mon Sep 17 00:00:00 2001 From: Srilekha927 <115856948+Srilekha927@users.noreply.github.com> Date: Mon, 4 Mar 2024 19:47:50 +0530 Subject: [PATCH] Removed line 101 which will throw an error #set X and Y: X = df2.drop(['MCI'],axis=1).values #sets x and converts to an array print(X.head()) Here, the print statement would result in an error because X is an array. Using head() on arrays is not permissible due to its incompatible nature with array types. --- predicting_crime.py | 1 - 1 file changed, 1 deletion(-) diff --git a/predicting_crime.py b/predicting_crime.py index 4132bf8..b3be9d1 100644 --- a/predicting_crime.py +++ b/predicting_crime.py @@ -98,7 +98,6 @@ #set X and Y: X = df2.drop(['MCI'],axis=1).values #sets x and converts to an array -print(X.head()) y = df2['MCI'].values #sets y and converts to an array