58 year_list = ['Y ' + year for year in year_set]
59
60 arrays=[]
61 for i in range(len(header_set)):62 arrays.append([])
63
64 length = len(header_set)
29
30
31def app_layout():
32 children = [dcc.Tab(label=label, value=labelIds[idx]) for (idx, label) in enumerate(labels)] 33 return (
34 html.Div([
35 html.H2('Aggregated Economic Activities')
72
73 year_list = ['Y ' + year for year in year_set]
74 arrays=[]
75 for i in range(len(header_set)): 76 arrays.append([])
77 rows = data.iloc[index][2:-2]
78 length = len(header_set)
An unused variable takes up space in the code, and can lead to confusion, and it should be removed. If this variable is necessary, name the variable _
to indicate that it will be unused, or start the name with unused
or _unused
.
def update():
for i in range(10): # Usused variable `i`
time.sleep(0.01)
display_result()
def update():
for _ in range(10):
time.sleep(0.01)
display_result()