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()
Notes
locations
keyword argument should be a list of region names abbreviated as
following (check px.data.kazakhstan_population().region
to see the full list):
{
"ABY": "Abay Region",
"AKM": "Akmola Region",
"AKT": "Aktobe Region",
"ALR": "Almaty Region",
"ATY": "Atyrau Region",
"EKR": "East Kazakhstan Region",
"JMB": "Jambyl Region",
"JTS": "Jetisu Region",
"KGD": "Karaganda Region",
"KST": "Kostanay Region",
"KZY": "Kyzylorda Region",
"MNG": "Mangystau Region",
"NKR": "North Kazakhstan Region",
"PVD": "Pavlodar Region",
"TRK": "Turkistan Region",
"ULY": "Ulytau Region",
"WKR": "West Kazakhstan Region",
"ALA": "Almaty",
"AST": "Astana",
"SHY": "Shymkent",
}
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.2.post1.tar.gz
.
File metadata
- Download URL: plotly_kz_map-0.0.2.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 | c5aa41e06941f3ab63e5e9dfec8713bf3d9350d736c082464f6f6d4cd2d87a56 |
|
MD5 | be521f49dd8058d36aca5da21e59d107 |
|
BLAKE2b-256 | 6ef66cceb68c3cd13a05a9c84641ac8adb5f039a853ed20109641f8e433cad2d |
File details
Details for the file plotly_kz_map-0.0.2.post1-py3-none-any.whl
.
File metadata
- Download URL: plotly_kz_map-0.0.2.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 | 358e43ddd1d324eba0454740f5c1b04329b78b1881c4030a010be57e1cbad434 |
|
MD5 | b3f28c90743fd5dd6b323792858898da |
|
BLAKE2b-256 | 11784830ebe653157af1804af61dc2bcaee018cace653dedc29e5eaa632a4d68 |