Learn practical skills, build real-world projects, and advance your career
Updated 3 years ago
plotly-line-chart
Use the "Run" button to execute the code.
!pip install plotly --quiet
import plotly.express as px
import pandas as pd
df = pd.DataFrame({
'United States': {2017: 0.21, 2018: .23},
'Russia': {2017: 0.18, 2018: 0.12},
'China': {2017: 0.17,2018: 0.15},
'India': {2017:0.16,2018: 0.14},
'Brazil': {2017:0.07, 2018:0.08}
})