Effective PyCharm Transcripts
Chapter: Data science tools
Lecture: Your turn: Data science

Login or purchase this course to watch this video and the rest of the course contents.
0:02 The data science tools are fun to play with because we get to draw cool pictures,
0:07 so in this your turn, you'll get to create some cool looking crafts like this and draw them in PyCharm, both directly within PyCharm
0:15 and by using PyCharm's embedded Jupyter notebooks. Go down, you can see your steps are here,
0:23 so we're going to start up by using PyCharm's data science mode and if we just start working with the data science libraries
0:29 we saw it will actually suggest and adapt to that directly, we'll draw some cool graphs and then we'll do the same thing
0:36 but this time we'll redo it again but in Jupyter notebooks and there are a few minor changes to make things work the way you might want.
0:42 So we'll start out aiming to draw this picture we're going to use Pandas, Matplotlib and so on,
0:48 so create a new project, we're going to write this import up here and then we're going to important NumPy and once we do that
0:55 it says, oh, NumPy science, you want to be scientific and go into scientific mode, yes, you do, click that.
1:01 So then we're going to add this remaining imports, we're going to write some code here to create like a three dimensional parabola,
1:09 sort of inverted quadratic equation type thing and we're going to put it here, you might get a warning about arange, don't worry it should be working,
1:19 PyCharm just doesn't detect that correctly for whatever reason you want to create a surface and show it and it should look like this in PyCharm,
1:25 you also get a warning about this color map coolwave, also, it's fine. So you get this working, this is really cool, over here in this science view,
1:33 now we're going to do the same thing in Jupyter notebooks, so we're going to create a new Jupyter notebook,
1:38 and the code is slightly different, you want to tell Matplotlib to render inline
1:42 you have to do a few steps to actually install and set up Jupyter notebooks, so that's pretty interesting, there's a few things we got to do here,
1:51 notice there is this fix button you have to click, it is going to do some work, it's going to eventually be ready to run
1:56 once you click run, you'll be able to use this url, you don't actually have to click it though, you just go and rerun,
2:03 there's a little button that's hiding right here, a little green button, you just click that again, it will automatically connect, that's awesome.
2:10 And then you'll go and write the rest of the code you don't have to do the service.show this time because Jupyter knows about it already
2:18 and down here embedded within our Jupyter notebook is basically the same output, it's pretty cool. So, have fun drawing pretty pictures with PyCharm.


Talk Python's Mastodon Michael Kennedy's Mastodon