Downloading the data
The easiest way is to go to the github page and clone the repository OR click the green “Clone or Download” button and “Download Zip”.
The link to the Github repostiory is on the left, or you can click here: https://github.com/chendaniely/pycon_2019-pandas_tutorial/
Setup
Python
Anaconda,
an all-in-one installer, is recommended.
Regardless of how you choose to install it,
please make sure you install Python version 3.x
(e.g., 3.7 is fine).
When using the IPython notebook, a programming environment
that runs in a web browser, you will need a reasonably
up-to-date browser. The current versions of the Chrome, Safari and
Firefox browsers are all
supported
(some older browsers, including Internet Explorer version 9
and below, are not).
Windows
Video Tutorial
- Open http://continuum.io/downloads with your web browser.
- Download the Python 3 installer for Windows.
- Install Python 3 using all of the defaults for installation except make sure to check Make Anaconda the default Python.
Mac OS X
Video Tutorial
- Open http://continuum.io/downloads with your web browser.
- Download the Python 3 installer for OS X.
- Install Python 3 using all of the defaults for installation.
Linux
- Open http://continuum.io/downloads with your web browser.
- Download the Python 3 installer for Linux.
(Installation requires using the shell. If you aren't
comfortable doing the installation yourself
stop here and request help at the workshop.)
-
Open a terminal window.
-
Type
bash Anaconda3-
and then press
tab. The name of the file you just downloaded should
appear. If it does not, navigate to the folder where you
downloaded the file, for example with:
cd Downloads
Then, try again.
-
Press enter. You will follow the text-only prompts. To move through
the text, press the space key. Type
yes
and
press enter to approve the license. Press enter to approve the
default location for the files. Type yes
and
press enter to prepend Anaconda to your PATH
(this makes the Anaconda distribution the default Python).
-
Close the terminal window.
</ol>
### Testing If Anaconda was installed
1. Open up the Anaconda Command Prompt
2. Type "ipython" into the prompt
3. You should see Python open up with Python 3.7.x and using the Anaconda distribution
4. Type "quit()" to exit
5. Type "jupyer notebook" to launch the notebook (this may take a while if it is the first time you are launching it)
6. Note the URL (with the token), paste it into your browser
7. Close the anaconda prompt when you're done
### Installing Packages
To install the packages needed for the class you can follow the instructions below:
1. Open your Anaconda Command prompt (Windows)
2. Run the following lines of code
- note that ctrl+v may not paste in windows,
you can paste by pressing shift + insert,
or by clicking the icon to the top left of the Anaconda Command promt then edit then paste
If you are just following along with the class, you may only need to run the following command:
Anaconda has everything you need for the class.
However, f you installed miniconda, instead of Anaconda,
you would need to run the following commands to make sure you have everything.
``` bash
conda install xlwt openpyxl seaborn statsmodels scikit-learn regex odo numba
conda install -c conda-forge feather-format wget
pip install lifelines pandas-datareader
```