Geomap utilities module

This module provide the functionality to create geomaps from given DataFrames

map_utils.get_map_locations(df)[source]

Given a df it creates a figure with the tweet activity of the users stored in the database.

Parameters

df – The DataFrame generated from dash_utils.get_map_df().

Returns

The figure with the location of the users.

map_utils.get_map_stats_by_country(df, type='tweets')[source]

Given a df it creates a figure with the tweet activity of the users stored in the database.

Parameters
  • df – The DataFrame generated from dash_utils.get_map_df().

  • type – The type of activity (tweets or followers)

Returns

The figure representing the activity.