A personal diary of DataFrame munging over the years.
Convert Series datatype to numeric (will error if column has non-numeric values)
(h/t @makmanalp)
| import os | |
| import subprocess | |
| import shutil | |
| import signal | |
| import tempfile | |
| import time | |
| class RethinkProcess(object): | |
| def __init__(self): |
A personal diary of DataFrame munging over the years.
Convert Series datatype to numeric (will error if column has non-numeric values)
(h/t @makmanalp)
Start your rethinkdb instance with this flag:
--bind all (or bind=all in the configuration file for your instance)
Block external access to the web UI with these two commands:
sudo iptables -A INPUT -i eth0 -p tcp --dport 8080 -j DROP
sudo iptables -I INPUT -i eth0 -s 127.0.0.1 -p tcp --dport 8080 -j ACCEPT
Install nginx:
sudo apt-get install nginx
| class GAEHandler(logging.Handler): | |
| """ | |
| Logging handler for GAE DataStore | |
| """ | |
| def emit(self, record): | |
| from google.appengine.ext import db | |
| class Log(db.Model): | |
| name = db.StringProperty() |