Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1180,7 +1180,8 @@ def handle_large_dataset(df, create_document,isDataFrame):
|
|
| 1180 |
# Filter the DataFrame to include only the required columns
|
| 1181 |
#print(df[required_columns])
|
| 1182 |
#limited_data = df[required_columns]
|
| 1183 |
-
|
|
|
|
| 1184 |
limited_data_without_first_column = limited_data.iloc[:, 1:]
|
| 1185 |
else:
|
| 1186 |
limited_data = df.head(20)
|
|
|
|
| 1180 |
# Filter the DataFrame to include only the required columns
|
| 1181 |
#print(df[required_columns])
|
| 1182 |
#limited_data = df[required_columns]
|
| 1183 |
+
limited_data11 = df.head(3)
|
| 1184 |
+
limited_data = limited_data11[required_columns]
|
| 1185 |
limited_data_without_first_column = limited_data.iloc[:, 1:]
|
| 1186 |
else:
|
| 1187 |
limited_data = df.head(20)
|