Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

Experiment 1 Data exploration

1.Installation of Python
(1) Download python 3.7.4 from the website
https://www.python.org/downloads/release/python-374/.
Please choose the corresponding version according to your operator system, for
example, my laptop uses windows 64 bit OS, the correct version should be Windows
x86-64 executable installer.
(2) Install Python according to the instruction in
https://www.cnblogs.com/yangjian319/p/8666527.html. Note that there are install
instruction for windows and Linux, please choose the correct one according to your
OS. Once the installation is finished, you can open IDLE from your start menu.

Fig.1 open IDLE from start menu.

3
Fig.2 python commands can be input here.
(3) Python needs the supports from the third party libraries. In our experiment, the
libraries of numpy, pandas, scipy and seaborn are necessary. They can be obtained
from the website https://www.lfd.uci.edu/~gohlke/pythonlibs/. Note that the version
of the third party libraries should be consistent with the version of python. For
example, we installed python 3.7.4, therefore, the compatible version of the libraries
should be as follows:
numpy-1.17.2+mkl-cp37-cp37m-win_amd64.whl
pandas-0.25.1-cp37-none-win_amd64.whl
scipy-1.3.1-cp37-cp37m-win_amd64.whl
seaborn-0.9.0-py2.py3-none-any.whl
(4) The third party libraries should be put in the file of Scripts. In my laptop the path
is D:\Program Files\Python\Python37\Scripts. It depends on your installation path of
python.
(5) Installation of the third party libraries.
a. open the command window

3
Fig.3 command window
b. Switch to the path of python Scripts. Note that “D:\Program
Files\Python\Python37\Scripts” is my python installation path, it may be different in
your laptop.

Fig.4 switch to python Scripts


c. install numpy. Successfully installation will be shown if the library is installed
successfully.
pip install pandas-0.25.1-cp37-none-win_amd64.whl
pip install scipy-1.3.1-cp37-cp37m-win_amd64.whl
pip install seaborn-0.9.0-py2.py3-none-any.whl

3
Fig.5 Install numpy.
d. then install the libraries of pandas, scipy and seaborn sequentially with the same
way.
2.Data exploration with Iris data set.
Please reference the website https://www.cnblogs.com/star-zhao/p/9847082.html
A simple example:

Fig.6 An example of Iris data exploration


Please note that the file “Iris.csv” should be put under your python installation path, in
mU tuiy laptop it is “D:\Program Files\Python\Python37”. It may be different in your
laptop.
3

You might also like