diff --git a/DataProfileViewer/.DS_Store b/DataProfileViewer/.DS_Store
deleted file mode 100644
index 0ce4e7f6..00000000
Binary files a/DataProfileViewer/.DS_Store and /dev/null differ
diff --git a/DataProfileViewer/_plot_metadata_table.py b/DataProfileViewer/_plot_metadata_table.py
index e2a7626c..52efc3cc 100644
--- a/DataProfileViewer/_plot_metadata_table.py
+++ b/DataProfileViewer/_plot_metadata_table.py
@@ -1,11 +1,7 @@
import pkg_resources
import string
-import numpy as np
-from dateutil.parser import parse
import json
-import networkx as nx
from ._comm_api import setup_comm_api
-from collections import defaultdict
import copy
import random
import datamart_profiler
@@ -40,57 +36,57 @@ def id_generator(size=15):
"""Helper function to generate random div ids. This is useful for embedding
HTML into ipython notebooks."""
chars = list(string.ascii_uppercase)
- return ''.join(np.random.choice(chars, size, replace=True))
+ return ''.join(random.choices(chars, k=size))
def make_html(data_dict, id):
- lib_path = pkg_resources.resource_filename(__name__, "build/dataProfileVis.js")
- bundle = open(lib_path, "r", encoding="utf8").read()
- html_all = """
-
-
-
-
-
-
-
-
-
-
- """.format(bundle=bundle, id=id, data_dict=json.dumps(data_dict))
- return html_all
+ lib_path = pkg_resources.resource_filename(__name__, "build/dataProfileVis.js")
+ bundle = open(lib_path, "r", encoding="utf8").read()
+ html_all = """
+
+
+
+
+
+
+
+
+
+
+ """.format(bundle=bundle, id=id, data_dict=json.dumps(data_dict))
+ return html_all
def edit_profiler_make_html(data_dict, id):
- lib_path = pkg_resources.resource_filename(__name__, "build/dataProfileVis.js")
- bundle = open(lib_path, "r", encoding="utf8").read()
- html_all = """
-
-
-
-
-
-
-
-
-
-
- """.format(bundle=bundle, id=id, data_dict=json.dumps(data_dict))
- return html_all
+ lib_path = pkg_resources.resource_filename(__name__, "build/dataProfileVis.js")
+ bundle = open(lib_path, "r", encoding="utf8").read()
+ html_all = """
+
+
+
+
+
+
+
+
+
+
+ """.format(bundle=bundle, id=id, data_dict=json.dumps(data_dict))
+ return html_all
def getSample(text):
df = pandas.read_csv(StringIO(text))
result = [df.columns.values.tolist()] + df.values.tolist()
return result
-def prepare_data_profiler(metadata, enet_alpha=0.001, enet_l1=0.1):
+def prepare_data_profiler(metadata):
metadata = copy.deepcopy(metadata)
metadataJSON = {
diff --git a/DataProfileViewer/js/index.tsx b/DataProfileViewer/js/index.tsx
index ae3bac07..e27ca79a 100644
--- a/DataProfileViewer/js/index.tsx
+++ b/DataProfileViewer/js/index.tsx
@@ -6,13 +6,13 @@ import {EditProfilerView} from './EditProfilerView/EditProfilerView';
import "regenerator-runtime/runtime";
export function renderProfilerViewBundle(divName, data){
- ReactDOM.render(
-
- , select(divName).node());
+ ReactDOM.render(
+
+ , select(divName).node());
}
export function renderEditProfilerViewBundle(divName, data){
- ReactDOM.render(
-
- , select(divName).node());
+ ReactDOM.render(
+
+ , select(divName).node());
}
\ No newline at end of file
diff --git a/setup.py b/setup.py
index daabd412..992d2ffb 100644
--- a/setup.py
+++ b/setup.py
@@ -21,11 +21,6 @@
],
python_requires='>=3.6',
install_requires=[
- "python-dateutil",
- "numpy",
- "scipy",
- "scikit-learn",
- "networkx",
"notebook",
"datamart-profiler>=0.8",
"pandas"