sudo apt-get install python3-pip
sudo pip3 install virtualenv
# Source: https://stackoverflow.com/questions/27934885/how-to-hide-code-from-cells-in-ipython-notebook-visualized-with-nbviewer | |
from IPython.display import HTML | |
HTML('''<script> | |
code_show=true; | |
function code_toggle() { | |
if (code_show){ | |
$('div.input').hide(); | |
} else { |
NAME | |
nose.tools | |
DESCRIPTION | |
Tools for testing | |
----------------- | |
nose.tools provides a few convenience functions to make writing tests | |
easier. You don't have to use them; nothing in the rest of nose depends | |
on any of these methods. |
import datetime | |
# When dumping to csv excel puts date in 5 digit float format (e.g. 39856.0) | |
# function converts series of dates to date string. | |
def date_to_string(digit_date): | |
new_form = [] | |
for d in digit_date: | |
try: | |
x = datetime.date(1899,12,30) + datetime.timedelta(days=float(d)) | |
new_form.append(x.strftime('%Y-%m-%d')) |