variable with spaces in plotly

I know it is not ideal to have variable names with spaces. But I am curious if there is a way to do this for plotly in python easily. So this worked for variables without spaces: fig_gender = px.bar( df_gender_grp, y="gender", x="index", color="gender", labels=dict(gender="gender", index="count"), but the same approach for variables with spaces (e.g., age… Read More variable with spaces in plotly

is it safe to use the same variable name repeatedly in a series of functions?

Is it safe to re-use the same variable name repeatedly in a series of functions? My code is: with open(thisdoc_dir + ‘/’ + ‘metadata.txt’, ‘w’) as m: m.write(str(metadatas[1]) + ‘\n’) m.close() with open(thisdoc_dir + ‘/’ + ‘metadata.json’, ‘w’) as m: m.write(str(metadatas[0])) m.close() with open(thisdoc_dir + ‘toc.txt’, ‘w’) as m: m.write(str(metadatas[2])) m.close() Before this block, I… Read More is it safe to use the same variable name repeatedly in a series of functions?