A Python package that provides a simple interface to create Kazakhstan maps using Plotly
Project description
Plotly Kazakhstan Map
plotly_kz_map
— is a Python package that provides a simple interface to create
Kazakhstan maps using Plotly.
Installation
pip install plotly-kz-map
Features
- Drop in replacement for Plotly
choropleth
function, but with Kazakhstan regions support.
Example
Here is an example using plotly_kz_map
to visualize the population
of Kazakhstan by regions.
import plotly_kz_map as px
# load a sample dataset as a pandas DataFrame
df = px.data.kazakhstan_population()
fig = px.choropleth(
locations=df.region,
locationmode="KZ-regions",
color=df.population,
)
fig.show()
Or you can use a discrete color scale:
import plotly_kz_map as px
# load a sample dataset as a pandas DataFrame
df = px.data.kazakhstan_population()
fig = px.choropleth(
locations=df.region,
locationmode="KZ-regions",
color=df.region,
)
fig.show()
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file plotly_kz_map-0.0.1.post1.tar.gz
.
File metadata
- Download URL: plotly_kz_map-0.0.1.post1.tar.gz
- Upload date:
- Size: 1.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9264ec049f29786e905666c76737bc9a18480bc4727d918bbd86729879fa7d2a |
|
MD5 | c66398ba7ac7f6baac410eab63330ea6 |
|
BLAKE2b-256 | dc6e980c6492a161bb619b2f190385043d996f8d18098ee2bc4e098c254a6f2c |
File details
Details for the file plotly_kz_map-0.0.1.post1-py3-none-any.whl
.
File metadata
- Download URL: plotly_kz_map-0.0.1.post1-py3-none-any.whl
- Upload date:
- Size: 1.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e3c71d943407649562b28b9e0d1479bf7e8983da8bf98c13aa5bb46411f3e41 |
|
MD5 | c5cf5caad2115aa3300c95c13358f155 |
|
BLAKE2b-256 | 5cf66ad5ef01f20a41825952af72efb7249089c22558557bf370a3946388dc51 |