Skip to main content

data-mountains

# requirements

import pandas as pd
import geopandas as gpd
from shapely.geometry import Polygon, Point, LineString, GeometryCollection
from shapely.ops import unary_union, transform
import altair as alt
import math
import matplotlib.pyplot as plt

Install

pip install data_mountains

How to use

# import the library
import data_mountains.mountainise as dm

# some census output area population density data
popden_oa = pd.read_csv('https://gist.github.com/joel-lbth/b35c0ac7a3652c3f34441d25c45ea84a/raw/d69075dc707b5bdb06c9b640d43db1e5b2ffcb64/lbth_census_2021_pop_density_oa.csv')

# some census output area population weighted centroids
oa = gpd.read_file("https://gist.github.com/joel-lbth/00f24602797d51d02d2177ed82f9295d/raw/b6c26621504a0df20ef6db1c93e5f99bce911d0a/lbth_oa21_pop_centroids.geojson")

# add data attribute to each point by merging on common identifier
gdf = oa.merge(popden_oa, left_on='oa21cd', right_on='GEOGRAPHY_CODE')

# turn each point in a data sized mountain
gdf = dm.points_to_peaks(gdf=gdf, column='OBS_VALUE', range=[0, 0.01])
# use Altair to create the visual
dm.plot(gdf=gdf, fill='#eee', stroke='#333')

Metadata

Release files for data-mountains 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for data-mountains 0.0.5
File Size Uploaded Provenance Actions
data-mountains-0.0.5.tar.gz 70.1 kB Without provenance Details for data-mountains-0.0.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for data-mountains 0.0.5
File Interpreter ABI Platform Actions
data_mountains-0.0.5-py3-none-any.whl Python 3 none any Details for data_mountains-0.0.5-py3-none-any.whl

Total release size: 86.8 kB

Release files / data-mountains-0.0.5.tar.gz

Download URL data-mountains-0.0.5.tar.gz
Size 70.1 kB
Tags Source
SHA-256 checksum
How to use checksums
539d9c80d6201958c86d30919c2c01148e2e85d78f8c1d3fa8a36dc010849b61
BLAKE2b-256 checksum
How to use checksums
ad53b9ac7cda6713742bec1348e1b3157ee0ce8f130d0d7a8e240d3697341be2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.12

Release files / data_mountains-0.0.5-py3-none-any.whl

Download URL data_mountains-0.0.5-py3-none-any.whl
Size 16.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9305ca6e7579295e6b0bce9edb136f1c0129eeea998a1dfbd5c160ef7092802d
BLAKE2b-256 checksum
How to use checksums
ebfbcd88bf0decdccf70b5eacd583fc4ec69e520561264615286cb377497b277
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.12

Security for data-mountains 0.0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page