This commit is contained in:
Yevhenii Poliakov 2023-05-14 21:26:34 +02:00
parent 3163212f32
commit e332f40a95

View File

@ -13,7 +13,7 @@ data = pd.read_csv('data.csv')
# Prepare the data # Prepare the data
X = data[['movie title', 'User Rating', 'Director', 'Top 5 Casts', 'Writer']] X = data[['movie title', 'User Rating', 'Director', 'Top 5 Casts', 'Writer']]
y = data['Rating'].astype(float) y = data['Rating'].values.astype(float)
print("Data type of 'Rating' column:", y.dtype) print("Data type of 'Rating' column:", y.dtype)