Skip to content

Instantly share code, notes, and snippets.

@vehrka
vehrka / df2pg.py
Created March 3, 2015 08:10
Python 3: Pandas to Postgres / Postgres to Pandas
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import psycopg2
from basiclogger import pyLogger
#from datetime import datetime
from pandas import DataFrame
from sqlalchemy import create_engine
FILENAME = 'dataframetopostgres.log'