Terms by Cluster FrameΒΆ

Example

>>> from techminer2.packages.networks.coupling.authors import TermsByClusterDataFrame
>>> df = (
...     TermsByClusterDataFrame()
...     #
...     # UNIT OF ANALYSIS:
...     .having_terms_in_top(20)
...     .having_citation_threshold(0)
...     .having_occurrence_threshold(2)
...     .having_terms_in(None)
...     #
...     # COUNTERS:
...     .using_term_counters(True)
...     #
...     # CLUSTERING:
...     .using_clustering_algorithm_or_dict("louvain")
...     #
...     # 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()
... ).head()
>>> # Display the resulting data frame
>>> print(df)  
                    0                   1
0      Gomber P. 2:1065  Jagtiani J. 3:0317
1  Kauffman R.J. 1:0576   Lemieux C. 2:0253
2      Parker C. 1:0576
3     Weber B.W. 1:0576
>>> df = (
...     TermsByClusterDataFrame()
...     #
...     # UNIT OF ANALYSIS:
...     .having_terms_in_top(20)
...     .having_citation_threshold(0)
...     .having_occurrence_threshold(2)
...     .having_terms_in(None)
...     #
...     # COUNTERS:
...     .using_term_counters(False)
...     #
...     # CLUSTERING:
...     .using_clustering_algorithm_or_dict("louvain")
...     #
...     # 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()
... ).head()
>>> # Display the resulting data frame
>>> print(df)  
               0            1
0      Gomber P.  Jagtiani J.
1  Kauffman R.J.   Lemieux C.
2      Parker C.
3     Weber B.W.