Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,7 @@ from sklearn.preprocessing import MinMaxScaler
|
|
| 10 |
# Load dataset with proper error handling
|
| 11 |
def load_data(file_path='games_march2025_cleaned.csv', max_rows=88899):
|
| 12 |
try:
|
| 13 |
-
data = pd.read_csv(file_path, quotechar='"', on_bad_lines='skip', nrows=max_rows)
|
| 14 |
print(f"Successfully loaded {len(data)} games from {file_path}")
|
| 15 |
return data
|
| 16 |
except Exception as e:
|
|
|
|
| 10 |
# Load dataset with proper error handling
|
| 11 |
def load_data(file_path='games_march2025_cleaned.csv', max_rows=88899):
|
| 12 |
try:
|
| 13 |
+
data = pd.read_csv(file_path, quotechar='"', on_bad_lines='skip', nrows=max_rows, engine='python')
|
| 14 |
print(f"Successfully loaded {len(data)} games from {file_path}")
|
| 15 |
return data
|
| 16 |
except Exception as e:
|