AttributeError: module 'pandas.io.sql' has no attribute ...
stackoverflow.com › questions › 38487878Jul 21, 2016 · Show activity on this post. 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?