![]() The type will determine data points’ colors and the total score their size.įor our plot, we’ll need a data set with 3 numeric columns (2 for plotting in 2 dimensions plus 1 for point sizes) and 1 categorical column to create a “hue semantic” - to paint data points in different colors depending on Pokemon types.įor plotting, we’ll use the Pokemon dataset, which you can download on Kaggle ( Pokemon.csv). We’ll create a Seaborn scatterplot showing the properties of Pokemons depending on their types and total scores. You’ll need the last line ( %matplotlib notebook) to display plots in input cells. In the first line of the notebook, import all the necessary libraries: This will automatically open the Jupyter home page at Click on the “New” button in the top right corner, select the Python version installed on your machine, and a notebook will open in a new browser window. ![]() “sns-scatterplot”) and open Jupyter Notebook by typing this command in your terminal (don’t forget to change the path):Ĭd C:\Users\Shark\Documents\code\sns-scatterplot Pip install numpy scipy matplotlib ipython jupyter pandas sympy nose seabornĬreate a folder that will contain your notebook (e.g. To get other tools, you’ll need to install recommended Scientific Python Distributions. You can download the latest version of Python for Windows on the official website. ![]() ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |