Skip to content

How to call field_summary in analysis.py ? #3

@szabgab

Description

@szabgab

I tried the following code based on the documentation of the function:

from factpages_py import Factpages
from factpages_py.analysis import AnalysisMixin



fp = Factpages(data_dir="./factpages_data")

fp.refresh()

print(fp.field_summary('TROLL'))

and got this error:

$ python a.py 
Traceback (most recent call last):
  File "/opt/a.py", line 10, in <module>
    print(fp.field_summary('TROLL'))
          ^^^^^^^^^^^^^^^^
  File "/opt/factpages_py/client.py", line 1941, in __getattr__
    raise AttributeError(f"'{type(self).__name__}' has no attribute '{name}'")
AttributeError: 'Factpages' has no attribute 'field_summary'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions