Corey Morris
commited on
Commit
•
d7b89ce
1
Parent(s):
9444cd2
fixed error
Browse files
app.py
CHANGED
@@ -7,6 +7,8 @@ import numpy as np
|
|
7 |
import plotly.graph_objects as go
|
8 |
from streamlit.components.v1 import html
|
9 |
|
|
|
|
|
10 |
# Google Analytics code snippet
|
11 |
google_analytics_code = """
|
12 |
<!-- Google tag (gtag.js) -->
|
@@ -20,7 +22,7 @@ google_analytics_code = """
|
|
20 |
"""
|
21 |
html(google_analytics_code, height=0)
|
22 |
|
23 |
-
|
24 |
|
25 |
def plot_top_n(df, target_column, n=10):
|
26 |
top_n = df.nlargest(n, target_column)
|
|
|
7 |
import plotly.graph_objects as go
|
8 |
from streamlit.components.v1 import html
|
9 |
|
10 |
+
st.set_page_config(layout="wide")
|
11 |
+
|
12 |
# Google Analytics code snippet
|
13 |
google_analytics_code = """
|
14 |
<!-- Google tag (gtag.js) -->
|
|
|
22 |
"""
|
23 |
html(google_analytics_code, height=0)
|
24 |
|
25 |
+
|
26 |
|
27 |
def plot_top_n(df, target_column, n=10):
|
28 |
top_n = df.nlargest(n, target_column)
|