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
If you call listed() after any other API call it works as expected but any API call after the listed() method will fail with
*** AttributeError: 'str' object has no attribute 'name'
This appears to be due to the name column that exists in the listed() output. It is possible that this might be fixed by renaming that column to something like company? I've not dug any deeper into this.
The text was updated successfully, but these errors were encountered:
Run into the same problem. Tracing with the debugger, the problem starts with the fact certain AV REST API functions only return a CSV. When you use them in this library, it appears to change the default json to csv. When that happens, the results are not converted to a DataFrame, but returned as text (in violation of the specified typing of the function).
The problem is that all this is done via an internal, module level variable called AV in _extension.py. The bigger problem is that datatype is the one field not listed as a property, so you can't modify it after calling a CSV-only method. I can't find a way to get around this (nor can Copilot).
The only viable way to handle this (that I can see) is to use the class approach that allows you to create a new instance with new state. It's a shame because the DataFrame extension offers a very nice DX.
To reproduce this, do the following:
If you call
listed()
after any other API call it works as expected but any API call after thelisted()
method will fail with*** AttributeError: 'str' object has no attribute 'name'
This appears to be due to the
name
column that exists in thelisted()
output. It is possible that this might be fixed by renaming that column to something likecompany
? I've not dug any deeper into this.The text was updated successfully, but these errors were encountered: