课程: Hands-On Data Science using SQL, Tableau, Python, and Spark

免费学习该课程!

今天就开通帐号,24,700 门业界名师课程任您挑!

Creating data visualization in Python

Creating data visualization in Python

- Now let's look at creating data visualizations inside of Python. Back here in Jupyter Notebooks, I'm going to open up the VisualizingData sample file. So here in the data visualization one, what you're going to see is, to start off, something different that we haven't seen before. This is a cell that is marked down instead of code. If I double-click on this, you'll see that, by typing the ## and then my title, it gives it a nice header. I can change it to a single one or a triple one. There's all kinds of different ways to affect this. Essentially, markdown is a nice way to format some text on the page, create bulleted lists, et cetera. That way, you're adding a layer of presentation or readability to your notebook. If I go ahead and run this, you can see what it did there. Very nice, very easy to read. Now we're going to import our libraries. We'll start with Pandas, and then we're going to pull in pyplot from matplotlib. Both of these are built into the Anaconda Distribution, so…

内容