From 3163212f32aa4b6f3bcafe64edbf78c32f97628d Mon Sep 17 00:00:00 2001 From: Yevhenii Poliakov Date: Sun, 14 May 2023 21:24:33 +0200 Subject: [PATCH] upd51 --- script5_1.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/script5_1.py b/script5_1.py index 1f561f5..2f72624 100644 --- a/script5_1.py +++ b/script5_1.py @@ -15,6 +15,9 @@ data = pd.read_csv('data.csv') X = data[['movie title', 'User Rating', 'Director', 'Top 5 Casts', 'Writer']] y = data['Rating'].astype(float) +print("Data type of 'Rating' column:", y.dtype) + + # Preprocess the data # Convert the categorical columns into numerical representations mlb_genres = MultiLabelBinarizer()