I am trying to read a posgresql table into a python data frame using following code.
import psycopg2 as pg
import pandas.io.sql as psql
connection = pg.connect("dbname=BeaconDB user=admin password=root")
dataframe = psql.frame_query("SELECT * from encounters", connection)
But I get AttributeError: module 'pandas.io.sql' has no attribute 'frame_query' How can I fix this?