World Map#
>>> from techminer2.report import world_map
>>> chart = world_map(
... #
... # ITEMS PARAMS:
... metric="OCC",
... #
... # CHART PARAMS:
... title="Countries' Scientific Production",
... colormap="Blues",
... #
... # ITEM FILTERS:
... top_n=20,
... occ_range=(None, None),
... gc_range=(None, None),
... custom_items=None,
... #
... # DATABASE PARAMS:
... root_dir="example/",
... database="main",
... year_filter=(None, None),
... cited_by_filter=(None, None),
... )
>>> chart.fig_.write_html("sphinx/_static/report/world_map.html")
>>> chart.df_.head()
rank_occ OCC before_2018 between_2018_2019 growth_percentage
countries
United States 1 16 1 15 93.75
China 2 8 3 5 62.50
Germany 3 7 2 5 71.43
South Korea 4 6 2 4 66.67
Australia 5 5 2 3 60.00
>>> print(chart.prompt_)
Your task is ...