Setting Everything Up
00:00 To get started with your pandas project, you’re going to need to install a couple of things. Naturally, you’ll need to install pandas because that’s what you’ll use to manipulate your data.
00:10 You’ll also install Jupyter, which is a notebook interface that you’ll use to work with pandas and to make it easier to explore and work with the data. And finally, you’re going to install lxml, which is a dependency that you will need in order to be able to fetch your data from the internet.
00:30 So pandas and Jupyter are two of the cornerstone dependencies for all data science projects—and lxml, you might not always need this, but for this project you will need this.
00:42 So now what you’re going to do is you’re going to open your terminal, you’re going to navigate into a new folder where you are comfortable moving things around, modifying things, installing things so that you can work in this project.
00:56 Once your terminal is open, make sure to create an empty virtual environment so that when you install the three dependencies that were mentioned before, that’s not going to clash with anything else you have installed already.
01:09
So go ahead and run, assuming you’re using pip, python -m pip install and then the three dependencies, which were pandas, jupyter, and lxml.
01:40
And once everything is installed, you want to make sure that it was correctly installed. So go ahead and run the Python REPL. Try importing pandas.
01:49
Now this might take a couple of seconds. If it’s the first time you’re importing pandas in a fresh, new virtual environment, but because you didn’t get a ModuleNotFound error, it’s probably fine.
01:59
Again, just wait a second, see if it works. It did work. So this should be okay. You’re going to go ahead and try to import lxml and might as well try to import jupyter.
02:11 All right, so these three modules have been installed correctly, and in the next lesson you’re going to start working with these to fetch your data from the internet.
Become a Member to join the conversation.
