Hi everyone,
Can anyone explain how to deploy a simple WebApp built Python (using pandas and plotly express) to Azure?
I have followed the steps described here:
However when I tried the page only says the following:
However, when I run it locally it works on the browser (firefox):
My code is very simple and small:
#import matplotlib.pyplot as plt
import pandas as pd
import plotly.express as px
#import numpy as np
import dash
from dash import html
import dash_bootstrap_components as dbc
columns = [“Country”, “AvgSalary”, “Cost of Living Index”]
df = pd.read_csv(“TechCostOfLiving.csv”, index_col=2, usecols=columns)
#print(df)
df = df.rename(columns={‘AvgSalary’: ‘Avg Salary - Thousands (USD)’})
fig = px.scatter(df, x=“Avg Salary - Thousands (USD)”, y=“Cost of Living Index”, text=“Country”, log_x=True, size_max=100)
fig.update_traces(textposition=‘top center’)
fig.update_layout(title_text=‘Avg Tech Wage Vs Cost of Living’, title_x=0.5)
fig.show()
Can you please explain what am I missing?
Thank you in advance for your help.