upd51
This commit is contained in:
parent
e332f40a95
commit
da57700f7b
@ -13,7 +13,8 @@ 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'].values.astype(float)
|
y = pd.Series(data['Rating'], dtype=float)
|
||||||
|
# y = data['Rating'].values.astype(float)
|
||||||
|
|
||||||
print("Data type of 'Rating' column:", y.dtype)
|
print("Data type of 'Rating' column:", y.dtype)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user