Cannot import name 'VALID_CLOSED' from 'pandas.core.arrays.interval'

When trying to query data from amazon Athena database, I get the following error:

while trying to execute the following code:

df_count_by_sentiment = wr.athena.read_sql_query( sql=statement_count_by_sentiment, database=database_name )

Here’s an output of the deafult bucked I created:

Please guide me further, Thank you.

Hello Jay,
Welcome to the community.

When you created the csv table did u replace None in database ?
and did you check your bucket matched to account id and region ?
Please also check that all the libraries are installed with their respective version .

hi Jay
I had the same error, it turned out I forgot to run the first cell to install the libraries. After running it, the error is resolved.