# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

# # Analysis: Ocurrence

# +
import pandas as pd
from techminer import RecordsDataFrame

rdf = RecordsDataFrame(pd.read_json("step-07.json", orient="records", lines=True))
# -

# ## Authors

rdf.ocurrence(column="Authors", sep=",", top_n=20).tomatrix()

rdf.ocurrence(column="Authors", sep=",", top_n=20).heatmap(figsize=(10, 8))

rdf.ocurrence(column="Authors", sep=",", top_n=20).ocurrence_map()

# ## Keywords

rdf.ocurrence(column="keywords (cleaned)", sep=";", top_n=20).tomatrix()

rdf.ocurrence(column="keywords (cleaned)", sep=";", top_n=10).heatmap(figsize=(9, 8))

rdf.ocurrence(column="keywords (cleaned)", sep=";", top_n=20).heatmap(figsize=(11, 10))

rdf.ocurrence(column="keywords (cleaned)", sep=";", top_n=30).heatmap(figsize=(12, 11))

StarcoderdataJupyterScriptsDedupFiltered