From the course: Interactive Dashboards with Plotly and Dash

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Basic Plotly charts

Basic Plotly charts

- [Instructor] All right, so in my pandas course and in our matplotlib course, you really dug deep into chart selection and which types of charts are most appropriate for what type of data. We're going to fast forward a little bit through that. We'll still cover the basics, but by this point, many of you probably understand in a lot of cases, these basic chart types are fairly intuitive. But we can create basic charts with the following Plotly Express functions. The biggest piece here is we just want to pass in a data frame as the first argument and specify the data frame columns to plot for the rest of the argument. The biggest thing to be mindful of is that some data types won't be appropriate for certain chart types in these arguments. So in order to build a line chart, we just want to use px.line, pass in our data frame, specify which column we want to be our x-axis, and which column you want to be our y-axis. For a scatter chart, we want to use px.scatter, pass in a data frame…

Contents