-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathReadme.txt
More file actions
83 lines (62 loc) · 3.4 KB
/
Copy pathReadme.txt
File metadata and controls
83 lines (62 loc) · 3.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
Title: Interactive Data Analysis in Python with Pandas using Jupyter Notebook
Presented by: David Lyon, Researcher @ Novo Nordisk Fonden Center for Protein Research, University of Copenhagen
email: dblyon@gmail.com
Introduction
Data comes in many forms, shapes and flavors. As tasty and free spirited as this may sound, the diligent data analyst often spends most of her/his time preparing and wrangling the data itself, rather than running or coding a particular model or statistical test. This is where Python and Pandas come into play, providing high-level, flexible, and efficient tools for manipulating your data as needed.
Program
CBioVikings will get a short introduction on how to use Jupyter Notebook (formerly IPython Notebook), an interactive computational environment, which combines code execution, rich text, mathematics, plots and media. Then we’ll delve right into Data Analysis using Pandas, a Python library providing easy-to-use data structures and data analysis tools.
Structure
Introduction 30-45 min
Break 7.5 min
Exercises 30-60 min
Prerequisites
This evening workshop is aimed at people with basic Python skills, but "all levels" are welcome and encouraged to attend. Please install the following software before the workshop and check that it is running (or at least download it before coming).
1.) Git
https://git-scm.com/
2.) Python (2.x or 3.x), Enthought or Anaconda (Python and other commonly used packages)
https://www.python.org/
https://www.enthought.com/canopy-subscriptions/ (Canopy Express is FREE and very easy to set up --> recommended if you are new to Python/programming)
https://www.continuum.io/downloads
The following Python packages can be installed using "pip" (a Python package manager) or found at "pypi" as well as individual web-sites.
https://pip.pypa.io/en/stable/installing/
https://pypi.python.org/
EASY INSTALLATION using pip:
enter the following in the terminal to install multiple packages at once including all dependencies
"pip install ipython jupyter numpy pandas matplotlib seaborn"
(n.b. if pip is not available write the following: "easy_install pip"
depending on your installation you might need to add python and pip to your environmental variables)
3.) IPython and Jupyter
http://jupyter.readthedocs.org/en/latest/install.html
4.) Numpy
http://www.numpy.org/
5.) Pandas
http://pandas.pydata.org/
optional:
6.) Matplotlib
http://matplotlib.org/
7.) xlrd
http://www.python-excel.org/
###############################################################################
####### RESOURCES used for this workshop
##### Pandas
#### Book by Wes McKinney
http://shop.oreilly.com/product/0636920023784.do
#### Pandas website
http://pandas.pydata.org/
#### Very good, but long tutorial.
https://github.com/fonnesbeck/statistical-analysis-python-tutorial
https://www.youtube.com/watch?v=DXPwSiRTxYY
### exploratory computing with Python
http://mbakker7.github.io/exploratory_computing_with_python/
### Intro to pandas data structures
http://www.gregreda.com/2013/10/26/intro-to-pandas-data-structures/
### Jupyter
http://jupyter.org/
### Pandas cheat sheet
https://github.com/pandas-dev/pandas/blob/master/doc/cheatsheet/Pandas_Cheat_Sheet.pdf
### Exercises
https://github.com/fonnesbeck/statistical-analysis-python-tutorial
https://github.com/guipsamora/pandas_exercises
https://github.com/ajcr/100-pandas-puzzles
http://gregreda.com/2013/10/26/working-with-pandas-dataframes/
http://pandas.pydata.org/