Co-occurrence Matrix

>>> from techminer2.co_occurrence_matrix import co_occurrence_matrix
>>> co_occurrence_matrix(
...     #
...     # FUNCTION PARAMS:
...     columns='author_keywords',
...     rows='authors',
...     #
...     # COLUMN PARAMS:
...     col_top_n=None,
...     col_occ_range=(2, None),
...     col_gc_range=(None, None),
...     col_custom_terms=None,
...     #
...     # ROW PARAMS:
...     row_top_n=None,
...     row_occ_range=(2, None),
...     row_gc_range=(None, None),
...     row_custom_terms=None,
...     #
...     # DATABASE PARAMS:
...     root_dir="example/",
...     database="main",
...     year_filter=(None, None),
...     cited_by_filter=(None, None),
... )
columns               FINTECH 31:5168  ...  P2P_LENDING 02:0161
rows                                   ...
Jagtiani J. 3:0317                  3  ...                    2
Gomber P. 2:1065                    1  ...                    0
Hornuf L. 2:0358                    2  ...                    0
Gai K. 2:0323                       2  ...                    0
Qiu M. 2:0323                       2  ...                    0
Sun X./3 2:0323                     2  ...                    0
Lemieux C. 2:0253                   2  ...                    1
Dolata M. 2:0181                    2  ...                    0
Schwabe G. 2:0181                   2  ...                    0
Zavolokina L. 2:0181                2  ...                    0

[10 rows x 12 columns]
>>> co_occurrence_matrix(
...     #
...     # FUNCTION PARAMS:
...     columns='author_keywords',
...     rows='author_keywords',
...     #
...     # COLUMN PARAMS:
...     col_top_n=None,
...     col_occ_range=(2, None),
...     col_gc_range=(None, None),
...     col_custom_terms=None,
...     #
...     # ROW PARAMS:
...     row_top_n=None,
...     row_occ_range=(None, None),
...     row_gc_range=(None, None),
...     row_custom_terms=None,
...     #
...     # DATABASE PARAMS:
...     root_dir="example/",
...     database="main",
...     year_filter=(None, None),
...     cited_by_filter=(None, None),
... )
columns                       FINTECH 31:5168  ...  P2P_LENDING 02:0161
rows                                           ...
FINTECH 31:5168                            31  ...                    2
INNOVATION 07:0911                          5  ...                    0
FINANCIAL_SERVICES 04:0667                  3  ...                    0
FINANCIAL_INCLUSION 03:0590                 3  ...                    0
FINANCIAL_TECHNOLOGY 03:0461                2  ...                    0
...                                       ...  ...                  ...
G20 01:0064                                 1  ...                    1
G28 01:0064                                 1  ...                    1
G29 01:0064                                 1  ...                    1
PAYMENTS 01:0064                            1  ...                    0
TRADING 01:0064                             1  ...                    0

[141 rows x 25 columns]