I am using the WRDS library to connect to the WRDS databases through Spyder. I import wrds
. According to the WRDS website, a query should look like this:
result = wrds.sql('select * from dataset', 'variable')
However, I get this error: AttributeError: module 'wrds' has no attribute 'sql'
Did you name your python script 'wrds.py'? This may explain why python does not find the .sql.
In my case the following works: