Skip to content
Snippets Groups Projects
Commit 0f35e127 authored by wyleung's avatar wyleung
Browse files

WIP

parent 24a035f5
No related branches found
No related tags found
1 merge request!3Merge back lecture on painting pandas with master repo
......@@ -2,7 +2,7 @@
"metadata": {
"celltoolbar": "Slideshow",
"name": "",
"signature": "sha256:e3a9c2db1ada7191abdcfbc0a9c2f98d21b831cf50379d3e2dab9393c30cb164"
"signature": "sha256:c960d1a8def7b2e949731bbbf428cf4136ae762f97e72489fd64795f06833637"
},
"nbformat": 3,
"nbformat_minor": 0,
......@@ -18,11 +18,16 @@
},
"source": [
"\n",
"More on IPython and Python libraries making science peanuts..\n",
"Python Data Analysis and more IPython\n",
"===\n",
"***\n",
"\n",
"Lecture by: Wai Yi Leung < <w.y.leung@lumc.nl> >\n",
"\n"
"[Wai Yi Leung](mailto:w.y.leung@lumc.nl), [Sequencing Analysis Support Core, Leiden University Medical Center](http://sasc.lumc.nl)\n",
"\n",
"Based on: [Pandas Tutorials Lessons 1,2,3,6](http://pandas.pydata.org/pandas-docs/stable/tutorials.html), [Seaborn Colorpalettes](http://web.stanford.edu/~mwaskom/software/seaborn/tutorial/color_palettes.html)\n",
"\n",
"\n",
"License: [Creative Commons Attribution 3.0 License (CC-by)](http://creativecommons.org/licenses/by/3.0)"
]
},
{
......@@ -49,9 +54,7 @@
},
"source": [
"Pandas\n",
"===\n",
"\n",
"* The ultimate carpenters toolkit for bio-informaticians"
"===\n"
]
},
{
......@@ -194,8 +197,8 @@
"input": [
"# Sample dataset\n",
"participants = ['Andrew', 'Bruno', 'Christine', 'Don', 'Esther', \n",
" 'Frans', 'Ginny', 'Hendrik', 'Ivar', 'John', 'Karl', \n",
" 'Lotte', 'Marjolijn', 'Nora', 'Olivia', 'Paula', 'Quinta', 'Renatta']\n",
" 'Frans', 'Giselle', 'Hendrik', 'Ivar', 'John', 'Karl', \n",
" 'Lotte', 'Marjolein', 'Nora', 'Olivia', 'Paula', 'Quinta', 'Renatta']\n",
"grades = [70, 65, 81, 73, 85, 35, 62, 60, 14, 64, 72, 75, 92, 84, 67, 72, 85, 82]\n",
"sex = ['M','M','F','M','F','M','F','M','M','M','M', 'F', 'F', 'F', 'F', 'F', 'F', 'F']\n",
"university = ['AU', 'NL', 'NL', 'AU', 'DE', 'DE', 'NL', 'NL', 'DE', 'AU', 'DE', 'NL', 'NL', 'AU', 'AU', 'DE', 'AU', 'DE']"
......@@ -207,7 +210,7 @@
}
},
"outputs": [],
"prompt_number": 2
"prompt_number": 4
},
{
"cell_type": "markdown",
......@@ -1370,11 +1373,58 @@
"Acknowledgements\n",
"===\n",
"\n",
"* Pandas - \n",
"* Martijn Vermaat for organizing this course\n",
"\n",
"(c) 2014 - Wai Yi Leung "
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"\n",
"from IPython.core.display import HTML\n",
"def custom_style():\n",
" style = open('styles/notebook.css', 'r').read()\n",
" return HTML('<style>' + style + '</style>')\n",
"def custom_script():\n",
" script = open('styles/notebook.js', 'r').read()\n",
" return HTML('<script>' + script + '</script>')\n",
"\n",
"custom_style()\n",
"\n",
"custom_script()"
],
"language": "python",
"metadata": {},
"outputs": [
{
"html": [
"<script>// https://github.com/CamDavidsonPilon/Probabilistic-Programming-and-Bayesian-Methods-for-Hackers\n",
"MathJax.Hub.Config({\n",
" TeX: {\n",
" extensions: [\"AMSmath.js\"]\n",
" },\n",
" tex2jax: {\n",
" inlineMath: [ ['$','$'], [\"\\\\(\",\"\\\\)\"] ],\n",
" displayMath: [ ['$$','$$'], [\"\\\\[\",\"\\\\]\"] ]\n",
" },\n",
" displayAlign: 'center', // Change this to 'center' to center equations.\n",
" \"HTML-CSS\": {\n",
" styles: {'.MathJax_Display': {\"margin\": 4}}\n",
" }\n",
" });\n",
"</script>"
],
"metadata": {},
"output_type": "pyout",
"prompt_number": 2,
"text": [
"<IPython.core.display.HTML at 0x1fb7050>"
]
}
],
"prompt_number": 2
}
],
"metadata": {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment