Terms by Cluster FrameΒΆ

Example

>>> from techminer2.packages.networks.co_authorship.authors import TermsByClusterDataFrame
>>> df = (
...     TermsByClusterDataFrame()
...     #
...     # FIELD:
...     .having_terms_in_top(20)
...     .having_terms_ordered_by("OCC")
...     .having_term_occurrences_between(None, None)
...     .having_term_citations_between(None, None)
...     .having_terms_in(None)
...     #
...     # NETWORK:
...     .using_clustering_algorithm_or_dict("louvain")
...     .using_association_index("association")
...     #
...     # DATABASE:
...     .where_root_directory_is("example/")
...     .where_database_is("main")
...     .where_record_years_range_is(None, None)
...     .where_record_citations_range_is(None, None)
...     .where_records_match(None)
...     #
...     .run()
... )
>>> # Display the resulting data frame
>>> print(df)  
                    0              1  ...                 5                 6
0      Gomber P. 2:1065  Gai K. 2:0323  ...     Lee I. 1:0557  Hornuf L. 2:0358
1  Kauffman R.J. 1:0576  Qiu M. 2:0323  ...  Shin Y.J. 1:0557
2      Parker C. 1:0576  Sun X. 2:0323  ...
3     Weber B.W. 1:0576                 ...
4     Koch J.-A. 1:0489                 ...
5     Siering M. 1:0489                 ...

[6 rows x 7 columns]