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
FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
final_dataframe = final_dataframe.append(
Have tried several things now with the pd.concat without luck. It's in "Looping Through The Tickers in Our List of Stocks"
final_dataframe = pd.DataFrame(columns = my_columns) for stock in stocks["Ticker"][:4]: api_url = f"https://sandbox.iexapis.com/stable/stock/{stock}/quote/?token={IEX_CLOUD_API_TOKEN}" data = requests.get(api_url).json() final_dataframe = final_dataframe.append( pd.Series([symbol, data['latestPrice'], data['marketCap'], 'N/A'], index = my_columns), ignore_index = True)
The text was updated successfully, but these errors were encountered:
It is not an error.
It is a warning.
Your code will still work.
if you don't want to get the warning.
put this at the top of your code import warnings warnings.filterwarnings(action='ignore', category=FutureWarning)
I get this error
FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
final_dataframe = final_dataframe.append(
Have tried several things now with the pd.concat without luck. It's in "Looping Through The Tickers in Our List of Stocks"
final_dataframe = pd.DataFrame(columns = my_columns) for stock in stocks["Ticker"][:4]: api_url = f"https://sandbox.iexapis.com/stable/stock/{stock}/quote/?token={IEX_CLOUD_API_TOKEN}" data = requests.get(api_url).json() final_dataframe = final_dataframe.append( pd.Series([symbol, data['latestPrice'], data['marketCap'], 'N/A'], index = my_columns), ignore_index = True)
The text was updated successfully, but these errors were encountered: