Update app.py
Browse files
app.py
CHANGED
|
@@ -14,7 +14,7 @@ def analyze_datasets(dataset, dataset_name, token, column=None, pairwise="off")
|
|
| 14 |
analyze_report = sv.analyze(df, target_feat=column, pairwise_analysis=pairwise)
|
| 15 |
else:
|
| 16 |
analyze_report = sv.analyze(df, pairwise_analysis=pairwise)
|
| 17 |
-
analyze_report.show_html('index.html', open_browser=False)
|
| 18 |
repo_url = create_repo(f"{username}/{dataset_name}", repo_type = "space", token = token, space_sdk = "static", private=False)
|
| 19 |
|
| 20 |
upload_file(path_or_fileobj ="./index.html", path_in_repo = "index.html", repo_id =f"{username}/{dataset_name}", repo_type = "space", token=token)
|
|
@@ -32,7 +32,7 @@ def compare_column_values(dataset, dataset_name, token, column, category):
|
|
| 32 |
arr = df[column].unique()
|
| 33 |
arr = list(arr[arr != column])
|
| 34 |
compare_report = sv.compare_intra(df, df[column] == category, arr[0])
|
| 35 |
-
compare_report.show_html('index.html', open_browser=False)
|
| 36 |
|
| 37 |
repo_url = create_repo(f"{username}/{dataset_name}", repo_type = "space", token = token, space_sdk = "static", private=False)
|
| 38 |
|
|
@@ -51,7 +51,7 @@ def compare_dataset_splits(dataset, dataset_name, token, splits):
|
|
| 51 |
username = HfApi().whoami(token=token)["name"]
|
| 52 |
|
| 53 |
compare_report = sv.compare([train, "Training Data"], [test, "Test Data"])
|
| 54 |
-
compare_report.show_html('index.html', open_browser=False)
|
| 55 |
|
| 56 |
repo_url = create_repo(f"{username}/{dataset_name}", repo_type = "space", token = token, space_sdk = "static", private=False)
|
| 57 |
|
|
|
|
| 14 |
analyze_report = sv.analyze(df, target_feat=column, pairwise_analysis=pairwise)
|
| 15 |
else:
|
| 16 |
analyze_report = sv.analyze(df, pairwise_analysis=pairwise)
|
| 17 |
+
analyze_report.show_html('./index.html', open_browser=False)
|
| 18 |
repo_url = create_repo(f"{username}/{dataset_name}", repo_type = "space", token = token, space_sdk = "static", private=False)
|
| 19 |
|
| 20 |
upload_file(path_or_fileobj ="./index.html", path_in_repo = "index.html", repo_id =f"{username}/{dataset_name}", repo_type = "space", token=token)
|
|
|
|
| 32 |
arr = df[column].unique()
|
| 33 |
arr = list(arr[arr != column])
|
| 34 |
compare_report = sv.compare_intra(df, df[column] == category, arr[0])
|
| 35 |
+
compare_report.show_html('./index.html', open_browser=False)
|
| 36 |
|
| 37 |
repo_url = create_repo(f"{username}/{dataset_name}", repo_type = "space", token = token, space_sdk = "static", private=False)
|
| 38 |
|
|
|
|
| 51 |
username = HfApi().whoami(token=token)["name"]
|
| 52 |
|
| 53 |
compare_report = sv.compare([train, "Training Data"], [test, "Test Data"])
|
| 54 |
+
compare_report.show_html('./index.html', open_browser=False)
|
| 55 |
|
| 56 |
repo_url = create_repo(f"{username}/{dataset_name}", repo_type = "space", token = token, space_sdk = "static", private=False)
|
| 57 |
|