Overhaul visualization page and dependency cleanup
This commit is contained in:
parent
dd2538f1ea
commit
bace83dc3a
|
@ -1,5 +1,3 @@
|
||||||
from json import dump
|
|
||||||
|
|
||||||
from requests import get
|
from requests import get
|
||||||
|
|
||||||
from constants import URL
|
from constants import URL
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
from base64 import b64encode
|
|
||||||
from io import BytesIO
|
|
||||||
|
|
||||||
from app.preprocessing import create_dataframe, create_map
|
from app.preprocessing import create_dataframe, create_map
|
||||||
|
|
||||||
|
|
||||||
|
@ -13,5 +10,5 @@ def create_table(df) -> str:
|
||||||
def process_data(dataset):
|
def process_data(dataset):
|
||||||
df = create_dataframe(dataset)
|
df = create_dataframe(dataset)
|
||||||
table = create_table(df)
|
table = create_table(df)
|
||||||
map = create_map(df)
|
create_map(df)
|
||||||
return table, map
|
return table
|
||||||
|
|
|
@ -3,7 +3,9 @@
|
||||||
|
|
||||||
{% block app_content %}
|
{% block app_content %}
|
||||||
<h1>Dataset visualization</h1>
|
<h1>Dataset visualization</h1>
|
||||||
<iframe class="map", src="/map" width="500" height="500"></iframe>
|
<iframe class="map", src="/map" width="400" height="400"></iframe>
|
||||||
|
<table style="margin-left: 350px;">
|
||||||
{{ table|safe }}
|
{{ table|safe }}
|
||||||
|
</table>
|
||||||
<p><a href="{{ url_for('data') }}">Back</a></p>
|
<p><a href="{{ url_for('data') }}">Back</a></p>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in New Issue