Skip to content

Commit 9246674

Browse files
committed
sep 26 7am
1 parent 43ef628 commit 9246674

19 files changed

Lines changed: 7315 additions & 403 deletions

data/Harry Potter Birthdays 2017-2018 Both.csv

Lines changed: 0 additions & 403 deletions
This file was deleted.

data/allegiances.csv

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Allegiances,Name
2+
Arryn,23
3+
Baratheon,56
4+
Greyjoy,51
5+
House Arryn,7
6+
House Baratheon,8
7+
House Greyjoy,24
8+
House Lannister,21
9+
House Martell,12
10+
House Stark,35
11+
House Targaryen,19
12+
House Tully,8
13+
House Tyrell,11
14+
Lannister,81
15+
Martell,25
16+
Night's Watch,116
17+
None,253
18+
Stark,73
19+
Targaryen,17
20+
Tully,22
21+
Tyrell,15
22+
Wildling,40

data/allegiances.xls

5.5 KB
Binary file not shown.

img/1_WfNLmA1PNHoJ5oXLOCDKZw.png

215 KB
Loading
743 KB
Loading
Lines changed: 229 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,229 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {},
6+
"source": [
7+
"# Python_ds\n",
8+
"\n",
9+
"1. open https://colab.research.google.com/\n",
10+
"2. File > open notebook > github > https://github.com/ogbinar/python_ds\n",
11+
"3. Select notebooks/index.ipynb\n"
12+
]
13+
},
14+
{
15+
"cell_type": "markdown",
16+
"metadata": {},
17+
"source": [
18+
"Topic Summary: [Python ds Content](98_contents.ipynb)"
19+
]
20+
},
21+
{
22+
"cell_type": "markdown",
23+
"metadata": {},
24+
"source": [
25+
"# Collaborative Learning\n",
26+
"\n",
27+
"* If you DON’T know, ask in ZOOM or Slack\n",
28+
"* You can also refer to: google, online API references, stack overflow\n",
29+
"* If you’re NOT SURE, validate in ZOOM or Slack\n",
30+
"* If you DO know, share in ZOOM or Slack \n",
31+
"* Feel free to correct me, or add on the topic \n",
32+
"* Say your name, say your name\n"
33+
]
34+
},
35+
{
36+
"cell_type": "markdown",
37+
"metadata": {},
38+
"source": [
39+
"# Fun Activities\n",
40+
"\n",
41+
"* Programming is a Personal Journey\n",
42+
"* Nothing stops you from learning from others - Pair Programming\n",
43+
"* Notebooks will be provided\n",
44+
"* During exercises, if you finish early – HELP OTHERS OUT"
45+
]
46+
},
47+
{
48+
"cell_type": "markdown",
49+
"metadata": {},
50+
"source": [
51+
"Zen of Python\n",
52+
"===\n",
53+
"The Python community is incredibly large and diverse. People are using Python in science, in medicine, in robotics, on the internet, and in any other field you can imagine. This diverse group of thinkers has developed a collective mindset about how programs should be written. If you want to understand Python and the community of Python programmers, it is a good idea to learn the ways Python programmers think.\n",
54+
"\n",
55+
"You can easily see a set of guiding principles that is written right into the language:"
56+
]
57+
},
58+
{
59+
"cell_type": "code",
60+
"execution_count": 1,
61+
"metadata": {},
62+
"outputs": [
63+
{
64+
"name": "stdout",
65+
"output_type": "stream",
66+
"text": [
67+
"The Zen of Python, by Tim Peters\n",
68+
"\n",
69+
"Beautiful is better than ugly.\n",
70+
"Explicit is better than implicit.\n",
71+
"Simple is better than complex.\n",
72+
"Complex is better than complicated.\n",
73+
"Flat is better than nested.\n",
74+
"Sparse is better than dense.\n",
75+
"Readability counts.\n",
76+
"Special cases aren't special enough to break the rules.\n",
77+
"Although practicality beats purity.\n",
78+
"Errors should never pass silently.\n",
79+
"Unless explicitly silenced.\n",
80+
"In the face of ambiguity, refuse the temptation to guess.\n",
81+
"There should be one-- and preferably only one --obvious way to do it.\n",
82+
"Although that way may not be obvious at first unless you're Dutch.\n",
83+
"Now is better than never.\n",
84+
"Although never is often better than *right* now.\n",
85+
"If the implementation is hard to explain, it's a bad idea.\n",
86+
"If the implementation is easy to explain, it may be a good idea.\n",
87+
"Namespaces are one honking great idea -- let's do more of those!\n"
88+
]
89+
}
90+
],
91+
"source": [
92+
"import this"
93+
]
94+
},
95+
{
96+
"cell_type": "markdown",
97+
"metadata": {},
98+
"source": [
99+
"---"
100+
]
101+
},
102+
{
103+
"cell_type": "markdown",
104+
"metadata": {},
105+
"source": [
106+
"There is a lot here. Let's just take a few lines, and see what they mean for you as a new programmer.\n",
107+
"\n",
108+
" **Beautiful is better than ugly.**\n",
109+
"\n",
110+
"Python programmers recognize that good code can actually be beautiful. If you come up with a particularly elegant or efficient way to solve a problem, especially a difficult problem, other Python programmers will respect your work and may even call it beautiful. There is beauty in high-level technical work.\n",
111+
"\n",
112+
" **Explicit is better than implicit.**\n",
113+
"\n",
114+
"It is better to be clear about what you are doing, than come up with some shorter way to do something that is difficult to understand.\n",
115+
"\n",
116+
" **Simple is better than complex.**\n",
117+
" **Complex is better than complicated.**\n",
118+
"\n",
119+
"Keep your code simple whenever possible, but recognize that we sometimes take on really difficult problems for which there are no easy solutions. In those cases, accept the complexity but avoid complication.\n",
120+
"\n",
121+
" **Readability counts.**\n",
122+
"\n",
123+
"There are very few interesting and useful programs these days that are written and maintained entirely by one person. Write your code in a way that others can read it as easily as possible, and in a way that you will be able to read and understand it 6 months from now. This includes writing good comments in your code.\n",
124+
"\n",
125+
" **There should be one-- and preferably only one --obvious way to do it.**\n",
126+
"\n",
127+
"There are many ways to solve most problems that come up in programming. However, most problems have a standard, well-established approach. Save complexity for when it is needed, and solve problems in the most straightforward way possible.\n",
128+
"\n",
129+
" **Now is better than never.**\n",
130+
"\n",
131+
"No one ever writes perfect code. If you have an idea you want to implement it, write some code that works. Release it, let it be used by others, and then steadily improve it."
132+
]
133+
},
134+
{
135+
"cell_type": "markdown",
136+
"metadata": {},
137+
"source": [
138+
"# Start your journey!"
139+
]
140+
},
141+
{
142+
"cell_type": "markdown",
143+
"metadata": {},
144+
"source": [
145+
"**Start Here:** [Hello World](01_hello_world.ipynb), your very first Python program."
146+
]
147+
},
148+
{
149+
"cell_type": "markdown",
150+
"metadata": {},
151+
"source": [
152+
"Want to improve your Py-fu? Click here for [Other References](99_resources.ipynb)"
153+
]
154+
},
155+
{
156+
"cell_type": "markdown",
157+
"metadata": {},
158+
"source": [
159+
" \n",
160+
"# Exploring the Python Community\n",
161+
"\n",
162+
"As I have said earlier, the Python community is incredibly rich and diverse. Here are a couple resources to look at, if you want to do some exploring.\n",
163+
"\n",
164+
"- [The Python website](http://python.org/)\n",
165+
"\n",
166+
" The main Python website is probably not of too much interest to you at this point, but it is a great resource to know about as you start to learn more.\n",
167+
" \n",
168+
"<!-- -->\n",
169+
"\n",
170+
"- [PyCon](https://us.pycon.org/)\n",
171+
"\n",
172+
" The Python Conference (PyCon) is an incredible event, and the community is entirely welcoming to new programmers. They happen all over the world, throughout the year. If you can make your way to one of these conferences, you will learn a great deal and meet some really interesting people.\n",
173+
"\n",
174+
"<!-- -->\n",
175+
" \n",
176+
"- [PyLadies](http://www.pyladies.com/)\n",
177+
"\n",
178+
" Women and minorities are still under-represented in most technology fields, and the programming world is no different in this regard. That said, the Python community may well be the most welcoming and supportive programming community for women and minorities. There are a number of groups dedicated to bringing women and minorities together around programming in Python, and there are a number of explicit Codes of Conduct for Python-related events.\n",
179+
"\n",
180+
" PyLadies is one of the most visible of these organizations. They are a great resource, so go see what they do and what they have to offer.\n",
181+
"\n",
182+
"<!-- -->\n",
183+
" \n",
184+
"- [Python User Groups](https://wiki.python.org/moin/LocalUserGroups)\n",
185+
"\n",
186+
" Wherever there are a number of Python programmers, they will find a way to get together. Python user groups are regular meetings of Python users from a local area. Go take a look at the list of user groups, and see if there is one near you.\n",
187+
" \n",
188+
"<!-- -->\n",
189+
" \n",
190+
"- [Python PH](https://www.facebook.com/groups/pythonph/)\n",
191+
"\n",
192+
" We are PythonPH, a community in the Philippines for enthusiasts and users of the Python programming language. Our aim is to show that Python has something for everyone: from hobbyists, to educators, to professionals. More info: http://python.ph/\n",
193+
"\n",
194+
"<!-- -->\n",
195+
" \n",
196+
"- [StackOverflow PH](https://stackoverflow.com/questions/tagged/python)\n",
197+
"\n",
198+
" Stack Overflow is a question and answer site for professional and enthusiast programmers. It's built and run by you as part of the Stack Exchange network of Q&A sites. With your help, we're working together to build a library of detailed answers to every question about programming.\n",
199+
"\n",
200+
"<!-- -->\n",
201+
" \n",
202+
"- [Github Python](https://github.com/topics/python)\n",
203+
"\n",
204+
" Github provides hosting for software development and version control using Git. It offers the distributed version control and source code management functionality of Git, plus its own features."
205+
]
206+
}
207+
],
208+
"metadata": {
209+
"kernelspec": {
210+
"display_name": "Python 3",
211+
"language": "python",
212+
"name": "python3"
213+
},
214+
"language_info": {
215+
"codemirror_mode": {
216+
"name": "ipython",
217+
"version": 3
218+
},
219+
"file_extension": ".py",
220+
"mimetype": "text/x-python",
221+
"name": "python",
222+
"nbconvert_exporter": "python",
223+
"pygments_lexer": "ipython3",
224+
"version": "3.8.3"
225+
}
226+
},
227+
"nbformat": 4,
228+
"nbformat_minor": 1
229+
}
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {},
6+
"source": [
7+
"Numpy\n",
8+
"===\n",
9+
"NumPy is a Python package. It stands for 'Numerical Python'. It is a library consisting of multidimensional array objects and a collection of routines for processing of array. It is the foundational library where SciPy (Scientific Python) library is built."
10+
]
11+
},
12+
{
13+
"cell_type": "markdown",
14+
"metadata": {},
15+
"source": [
16+
"## Operations using NumPy\n",
17+
"Using NumPy, a developer can perform the following operations −\n",
18+
"\n",
19+
"* __Mathematical and logical operations on arrays.__\n",
20+
"\n",
21+
"* Fourier transforms and routines for shape manipulation.\n",
22+
"\n",
23+
"* Operations related to linear algebra. NumPy has in-built functions for linear algebra and random number generation."
24+
]
25+
},
26+
{
27+
"cell_type": "code",
28+
"execution_count": null,
29+
"metadata": {},
30+
"outputs": [],
31+
"source": [
32+
"name = input(\"What is your name? \") #input is one of the many things you will learn today (can you guess what it does?)\n",
33+
"print(\"Hello, \",name+\"! - Python\") #here, we allow Python to say hi back"
34+
]
35+
},
36+
{
37+
"cell_type": "markdown",
38+
"metadata": {},
39+
"source": [
40+
"- - -\n",
41+
"**NEXT TOPIC:** [Variables, Strings, and Numbers](02_var_string_num.ipynb)"
42+
]
43+
},
44+
{
45+
"cell_type": "code",
46+
"execution_count": null,
47+
"metadata": {},
48+
"outputs": [],
49+
"source": []
50+
}
51+
],
52+
"metadata": {
53+
"kernelspec": {
54+
"display_name": "Python 3",
55+
"language": "python",
56+
"name": "python3"
57+
},
58+
"language_info": {
59+
"codemirror_mode": {
60+
"name": "ipython",
61+
"version": 3
62+
},
63+
"file_extension": ".py",
64+
"mimetype": "text/x-python",
65+
"name": "python",
66+
"nbconvert_exporter": "python",
67+
"pygments_lexer": "ipython3",
68+
"version": "3.8.3"
69+
}
70+
},
71+
"nbformat": 4,
72+
"nbformat_minor": 1
73+
}
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {},
6+
"source": [
7+
"02 Pandas\n",
8+
"===\n",
9+
"Pandas is an open-source Python Library providing high-performance data manipulation and analysis tool using its powerful data structures."
10+
]
11+
},
12+
{
13+
"cell_type": "code",
14+
"execution_count": null,
15+
"metadata": {},
16+
"outputs": [],
17+
"source": [
18+
"print 'Hello Python world!' "
19+
]
20+
},
21+
{
22+
"cell_type": "code",
23+
"execution_count": null,
24+
"metadata": {},
25+
"outputs": [],
26+
"source": [
27+
"name = input(\"What is your name? \") #input is one of the many things you will learn today (can you guess what it does?)\n",
28+
"print(\"Hello, \",name+\"! - Python\") #here, we allow Python to say hi back"
29+
]
30+
},
31+
{
32+
"cell_type": "markdown",
33+
"metadata": {},
34+
"source": [
35+
"- - -\n",
36+
"**NEXT TOPIC:** [Matplotlib](03_matplotlib.ipynb)"
37+
]
38+
},
39+
{
40+
"cell_type": "code",
41+
"execution_count": null,
42+
"metadata": {},
43+
"outputs": [],
44+
"source": []
45+
}
46+
],
47+
"metadata": {
48+
"kernelspec": {
49+
"display_name": "Python 3",
50+
"language": "python",
51+
"name": "python3"
52+
},
53+
"language_info": {
54+
"codemirror_mode": {
55+
"name": "ipython",
56+
"version": 3
57+
},
58+
"file_extension": ".py",
59+
"mimetype": "text/x-python",
60+
"name": "python",
61+
"nbconvert_exporter": "python",
62+
"pygments_lexer": "ipython3",
63+
"version": "3.8.3"
64+
}
65+
},
66+
"nbformat": 4,
67+
"nbformat_minor": 1
68+
}

0 commit comments

Comments
 (0)