I hereby claim:
- I am sburns on github.
- I am sburns (https://keybase.io/sburns) on keybase.
- I have a public key whose fingerprint is B51D 917C 6E42 FACB 28CA 1CB2 CD41 A371 1C6D 28CC
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
[program:ipynb] | |
command=/gpfs22/home/burnsss1/env6/bin/ipython notebook --profile=external #change | |
numprocs=1 | |
numprocs_start=0 | |
autostart=true | |
autorestart=true | |
startsecs=1 | |
startretries=3 | |
exitcodes=0,2 | |
stopsignal=QUIT |
import io | |
import os | |
import sys | |
import types | |
from IPython.nbformat import current | |
from IPython.core.interactiveshell import InteractiveShell | |
def find_notebook(fullname, path=None): |
These are good questions. Q1 covers the very important knowledge that a key has one and only one value. I think Q2 requires a little more python knowledge than what's covered in the dictionary concept map but is otherwise a good exercise in assessing how to iterate over a dictionary and operate on the key, value pairs.
Q1
3
Q2
cities = {
'Jerusalem': 'Israel',
$ mkvirtualenv test && workon test | |
New python executable in test/bin/python2.7 | |
Not overwriting existing python script test/bin/python (you must use test/bin/python2.7) | |
Installing setuptools, pip...done. | |
$ pip --version | |
pip 1.5.4 from /Users/scottburns/.virtualenvs/test/lib/python2.7/site-packages (python 2.7) | |
$ date; pip install numpy pandas scipy > /dev/null; date | |
Fri Jun 27 11:19:57 CDT 2014 | |
Fri Jun 27 11:20:35 CDT 2014 |
In [2]: import pandas as pd | |
In [3]: p = pd.Period('4Q2005') | |
In [4]: p.start_time | |
Out[4]: Timestamp('2005-10-01 00:00:00') | |
In [5]: p.end_time | |
Out[5]: Timestamp('2005-12-31 23:59:59.999999999') | |
In [7]: p.end_time.date() |
print(str(select.compile(engine, compile_kwargs={'literal_binds': True})) |