Zaktualizuj 'kagle.py'

This commit is contained in:
Szymon Jadczak 2022-04-10 17:24:41 +02:00
parent e99de93a9d
commit 8863f36ca8

View File

@ -5,7 +5,7 @@ from sklearn.model_selection import train_test_split
#os.system("kaggle datasets download -d tamber/steam-video-games") #os.system("kaggle datasets download -d tamber/steam-video-games")
#os.system("unzip -o steam-video-games.zip") #os.system("unzip -o steam-video-games.zip")
steam=pd.read_csv('steam-200k.csv',usecols=[0,1,2,3],names=['userId','game','behavior','hoursPlayed']) steam=pd.read_csv('data.csv',usecols=[0,1,2,3],names=['userId','game','behavior','hoursPlayed'])
steam.isnull().values.any() steam.isnull().values.any()
steam['userId'] = steam.userId.astype(str) steam['userId'] = steam.userId.astype(str)