Professional Documents
Culture Documents
Instruction of Experiment1
Instruction of Experiment1
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.
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.
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: