Question: Review the following code: import plotly.express as px data = { ' a ' : [ 1 , 2 , 3 , 4 ] ,

Review the following code:
import plotly.express as px
data ={'a': [1,2,3,4],'b': [4,3,2,1]}
fig = px.line(data, x='a', y='b')
fig.show()
What will happen when this code is executed?
Group of answer choices
An error will occur because the data is not in a DataFrame.
A line chart will be displayed with 'a' as the x-axis and 'b' as the y-axis.
Nothing will be displayed as px.line is not a valid function.
An error will occur because the labels for the axes are not specified.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!