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
/tmp/ipykernel_32725/1067823130.py:21: UserWarning: Pandas doesn't allow columns to be created via a new attribute name - see https://pandas.pydata.org/pandas-docs/stable/indexing.html#attribute-access conv_df = PandasLLM(data=df, llm_api_key = os.environ.get("OPENAI_API_KEY"))
t> I get this error always, tried using the list instead of df, ahnd removing api_key but still get the same error
To fix this warning, the best practice when subclassing a DataFrame is to use the object attribute for custom attributes.
Replace the line self.llm_params = llm_params or {} in "init.py" to self.__dict__['llm_params'] = llm_params or {} solve this issue.
conv_df = PandasLLM(data=df, llm_api_key = os.environ.get("OPENAI_API_KEY"))
/tmp/ipykernel_32725/1067823130.py:21: UserWarning: Pandas doesn't allow columns to be created via a new attribute name - see https://pandas.pydata.org/pandas-docs/stable/indexing.html#attribute-access
conv_df = PandasLLM(data=df, llm_api_key = os.environ.get("OPENAI_API_KEY"))
I get this error always, tried using the list instead of df, and removing api_key but still get the same error
The text was updated successfully, but these errors were encountered: