This file contains 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 io import StringIO, BytesIO | |
import pickle | |
import pandas as pd | |
import psycopg2 | |
# Postgres connector functions | |
def connect(params_dic): | |
""" Connect to the PostgreSQL database server | |
params_dic should be a parameter dictionary with the following fields: |