Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -22,16 +22,16 @@ def edit_strings(string_list):
|
|
22 |
edited_list.append(string)
|
23 |
return edited_list
|
24 |
|
25 |
-
def
|
26 |
-
|
27 |
-
for
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
return
|
35 |
|
36 |
def figo(plot_type, df, title, xlabel=None, ylabel=None, legend_title=None, colorscale='Plotly3', width=800, height=600):
|
37 |
if plot_type == "Scatter":
|
|
|
22 |
edited_list.append(string)
|
23 |
return edited_list
|
24 |
|
25 |
+
def equalize_list_lengths(input_dict):
|
26 |
+
max_len = 0
|
27 |
+
for key in input_dict:
|
28 |
+
max_len = max(max_len, len(input_dict[key]))
|
29 |
+
|
30 |
+
for key in input_dict:
|
31 |
+
while len(input_dict[key]) < max_len:
|
32 |
+
input_dict[key].append(None)
|
33 |
+
|
34 |
+
return pd.DataFrame(input_dict)
|
35 |
|
36 |
def figo(plot_type, df, title, xlabel=None, ylabel=None, legend_title=None, colorscale='Plotly3', width=800, height=600):
|
37 |
if plot_type == "Scatter":
|