This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from lxml.html import parse | |
url = 'http://www.fdic.gov/bank/individual/failed/banklist.html' | |
doc = parse(url) | |
print len(doc.xpath('.//table')) > 0 | |
from bs4 import BeautifulSoup | |
from contextlib import closing | |
from urllib2 import urlopen | |
with closing(urlopen(url)) as f: | |
soup = BeautifulSoup(f.read(), features='lxml') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function setup_pandas_build_env() | |
{ | |
local cwd=`pwd` | |
if [ ! -e "$1" ]; then | |
mkdir "$1" | |
else | |
[ ! -d "$1" ] && echo "$1 is not a directory" && return 1 | |
fi | |
cd "$1" | |
vagrant init "$1" "$2" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"metadata": { | |
"name": "" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
====================================================================== | |
ERROR: statsmodels.datasets.tests.test_utils.test_get_rdataset | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/phillip/.virtualenvs/pandas/src/nose/nose/case.py", line 197, in runTest | |
self.test(*self.arg) | |
File "/home/phillip/Documents/code/py/statsmodels/statsmodels/datasets/tests/test_utils.py", line 18, in test_get_rdataset | |
duncan = get_rdataset("Duncan", "car", cache=cur_dir) | |
File "/home/phillip/Documents/code/py/statsmodels/statsmodels/datasets/utils.py", line 250, in get_rdataset | |
title = _get_dataset_meta(dataname, package, cache) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"metadata": { | |
"name": "so_date" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"metadata": { | |
"name": "" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"metadata": { | |
"name": "" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"metadata": { | |
"name": "" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
from __future__ import print_function | |
import re | |
import os | |
import fnmatch | |
import ast | |
import argparse |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in range(10): | |
print(i) | |
print(i * 2) |
OlderNewer