Usage question here.
query = """
SELECT ROW_NUMBER () OVER (ORDER BY ID) AS row_id, ID, user_ID, retweet_count, tweet, prediction
FROM tweet
WHERE created_at BETWEEN '2021-03-01' AND '2021-04-01'
"""
print("Getting tweets...")
df_tweet = dd.read_sql_query(query, URI, index_col = "row_id", columns = ['row_id', 'ID', 'user_ID', 'retweet_count', 'tweet', 'prediction'])
What I’m running into is We have error on xxxx SELECT query: 'str' object has no attribute 'limit'
. I figured this had to do with my index but it’s definitely numeric. What is the proper way to use read_sql_query
?