You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The output of geo_7d = geo_search(query_filter = f, sourcelang="portuguese", timespan=7) is str thus, you may not load the string into the pd.DataFrame. We are trying to reconstruct this function, as we have mentioned in Issue #8.
I'm trying to create a dataframe with Pandas, with the results of a search of
geo_search
But I get this error:
ValueError: DataFrame constructor not properly called!
The code I am using: (https://github.com/Cyclododecene/newsfeed)
from newsfeed.news.apis.filters import *
from newsfeed.news.apis.query import *
f = Art_Filter(
)
geo_7d = geo_search(query_filter = f, sourcelang="portuguese", timespan=7)
import pandas as pd
df=pd.DataFrame(geo_7d)
df.head()
Thanks!
The text was updated successfully, but these errors were encountered: