Generation

generate functionWed, 22 Feb 2023

Modify this code to make a horizontal bar graph instead of a vertical (plotly.express library) question6 = 'What is the most preferred working environment for you.' question6 = df[question6].value_counts() label = question6.index counts = question6.values fig = go.Figure(data=[go.Bar(x=label, y=counts)]) fig.update_layout(title_text='Какая рабочая среда для вас наиболее предпочтительна?') fig.show()

df['question6'].value_counts().iplot(kind='bar', yTitle='Count', linecolor='black', title = 'Какая рабочая среда для вас наиболее предпочтительна?')

Questions about programming?Chat with your personal AI assistant