Co-occurrence DataFrameΒΆ
Example
>>> from techminer2.packages.co_occurrence_matrix import DataFrame
>>> df = (
... DataFrame()
... #
... # COLUMNS:
... .with_field("author_keywords_raw")
... .having_terms_in_top(10)
... .having_terms_ordered_by("OCC")
... .having_term_occurrences_between(2, None)
... .having_term_citations_between(None, None)
... .having_terms_in(None)
... #
... # ROWS:
... .with_other_field("authors")
... .having_other_terms_in_top(None)
... .having_other_terms_ordered_by("OCC")
... .having_other_term_occurrences_between(2, None)
... .having_other_term_citations_between(None, None)
... .having_other_terms_in(None)
... #
... # COUNTERS:
... .using_term_counters(True)
... #
... # DATABASE:
... .where_root_directory("examples/fintech/")
... .where_database("main")
... .where_record_years_range(None, None)
... .where_record_citations_range(None, None)
... .where_records_match(None)
... #
... .run()
... )
>>> df.head(10)
rows columns OCC
0 Jagtiani J. 3:0317 FINTECH 31:5168 3
1 Jagtiani J. 3:0317 MARKETPLACE_LENDING 03:0317 3
2 Dolata M. 2:0181 FINTECH 31:5168 2
3 Dolata M. 2:0181 INNOVATION 07:0911 2
4 Gai K. 2:0323 FINTECH 31:5168 2
5 Hornuf L. 2:0358 FINTECH 31:5168 2
6 Lemieux C. 2:0253 FINTECH 31:5168 2
7 Lemieux C. 2:0253 MARKETPLACE_LENDING 03:0317 2
8 Qiu M. 2:0323 FINTECH 31:5168 2
9 Schwabe G. 2:0181 FINTECH 31:5168 2
>>> from techminer2.packages.co_occurrence_matrix import DataFrame
>>> df = (
... DataFrame()
... #
... # COLUMNS:
... .with_field("author_keywords")
... .having_terms_in_top(10)
... .having_terms_ordered_by("OCC")
... .having_term_occurrences_between(2, None)
... .having_term_citations_between(None, None)
... .having_terms_in(None)
... #
... # ROWS:
... .with_other_field(None)
... .having_other_terms_in_top(None)
... .having_other_terms_ordered_by(None)
... .having_other_term_occurrences_between(None, None)
... .having_other_term_citations_between(None, None)
... .having_other_terms_in(None)
... #
... # COUNTERS:
... .using_term_counters(True)
... #
... # DATABASE:
... .where_root_directory("examples/fintech/")
... .where_database("main")
... .where_record_years_range(None, None)
... .where_record_citations_range(None, None)
... .where_records_match(None)
... #
... .run()
... )
>>> df.head(10)
rows columns OCC
0 FINTECH 31:5168 FINTECH 31:5168 31
1 INNOVATION 07:0911 INNOVATION 07:0911 7
2 FINTECH 31:5168 INNOVATION 07:0911 5
3 INNOVATION 07:0911 FINTECH 31:5168 5
4 FINANCIAL_SERVICES 04:0667 FINANCIAL_SERVICES 04:0667 4
5 CROWDFUNDING 03:0335 CROWDFUNDING 03:0335 3
6 FINANCIAL_INCLUSION 03:0590 FINANCIAL_INCLUSION 03:0590 3
7 FINANCIAL_INCLUSION 03:0590 FINTECH 31:5168 3
8 FINANCIAL_SERVICES 04:0667 FINTECH 31:5168 3
9 FINANCIAL_TECHNOLOGIES 03:0461 FINANCIAL_TECHNOLOGIES 03:0461 3