I tried the example you’ve posted but I get this:
Traceback (most recent call last):
File "<string>", line 4, in <module>
File "/.../python3.10/site-packages/pandas/core/generic.py", line 5902, in __getattr__
return object.__getattribute__(self, name)
AttributeError: 'DataFrame' object has no attribute 'A'