-
-
Save amankharwal/972c0871b362ab74088ea35e2698a899 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
figure = [] | |
figure.append(px.violin(tv_shows_both_ratings, x = 'StreamingOn', y = 'IMDb', color='StreamingOn')) | |
figure.append(px.violin(tv_shows_both_ratings, x = 'StreamingOn', y = 'Rotten Tomatoes', color='StreamingOn')) | |
fig = make_subplots(rows=2, cols=4, shared_yaxes=True) | |
for i in range(2): | |
for j in range(4): | |
fig.add_trace(figure[i]['data'][j], row=i+1, col=j+1) | |
fig.update_layout(autosize=False, width=800, height=800) | |
fig.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment