pylifemap

Overview

pylifemap is a jupyter widget allowing to visualize taxonomy data on Lifemap. It provides several visualisation layers, as well as aggregation functions allowing to aggregate data along the tree branches.

Here is a simple example:

import pandas as pd
from pylifemap import Lifemap

# Load iucn dataset
iucn = pd.read_csv(
    "https://raw.githubusercontent.com/Lifemap-ToL/pylifemap/main/data/iucn.csv"
)

Lifemap(iucn).layer_points(radius=5, opacity=0.1).show()
/home/runner/work/pylifemap/pylifemap/src/pylifemap/data.py:98: UserWarning: 3 taxids have not been found in Lifemap database: [1221133, 210648, 303018]
  warnings.warn(msg, stacklevel=0)
/home/runner/work/pylifemap/pylifemap/src/pylifemap/data.py:110: UserWarning: 152 duplicated taxids have been found in the data
  warnings.warn(msg, stacklevel=0)

Installation and usage

  • Installation describes different ways to install and use the package.
  • Getting started gives general usage instructions.
  • The Layers section shows visual interactive examples of the different available layers.
  • Reference provides detailed documentation of the different methods and functions.

Credits