Part 1: From SPSS to Python

Photo by Shahadat Rahman on Unsplash

Getting Started

Install Python

Understanding Command Prompt

Image by Author
C:\Users\username>
C:\Users\username>cd desktop
C:\Users\username>e:
E:\>
Image by Author
Image by Author

Installing and Understanding the Python Packages

Installing the Coding Environment

pip install {name of package}
>pip install notebook
py -m pip install -U pip
C:\Users\'user name'>

Installing the Data Analysis Packages

Data Analysis Packages

pip install numpy
pip install pandas
pip install scipy
pip install -U scikit-learn
pip install statistics

Data Visualisation Tools

pip install matplotlib
pip install seaborn
pip install openpyxl

Creating Your First Python File in Jupyter

and closing it properly

Opening up a new notebook

  1. Through file manager create a new folder on your PC and name it whatever you.
  1. Place any/all files you will be using in the data folder
  2. I personally like to make an output folder as well, just to store any images, new CSV files that I make.
  3. Your folder should look like this:
Image by Author
C:\Users\'user name'>E:
E:\>
E:\>cd E:\’user name’\Documents\Tutorials for Medium
E:\'user name'\Documents\Tutorials for Medium>
E:\'user name'\Documents\Tutorials for Medium>jupyter notebook
Image by Author
Image by Author
Image by Author

Saving and Closing Your Notebook

[I 13:20:18.631 NotebookApp] Kernel shutdown: bb127fb0-eaaf-4d6d-ae1c-1c6d44aaa551E:\'username'\Documents\Tutorials for Medium>

Follow on for Part 2

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store