Skip to main content

A Python package that provides a simple interface to create Kazakhstan maps using Plotly

Project description

Plotly Kazakhstan Map

PyPI version

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()

Plotly Kazakhstan Map continuous

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()

Plotly Kazakhstan Map discrete

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

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

plotly_kz_map-0.0.3.tar.gz (1.3 MB view details)

Uploaded Source

Built Distribution

plotly_kz_map-0.0.3-py3-none-any.whl (1.2 MB view details)

Uploaded Python 3

File details

Details for the file plotly_kz_map-0.0.3.tar.gz.

File metadata

  • Download URL: plotly_kz_map-0.0.3.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

Hashes for plotly_kz_map-0.0.3.tar.gz
Algorithm Hash digest
SHA256 d76229884c8d305518a5e73a030f588a4fbdba7e3a326060fa906e40e645dfff
MD5 553c5f1176a57fc7947ba071af83ddc3
BLAKE2b-256 26589c8af6f3279f6bcf077138894b3af0164d71f0831dfb3b88146393a23cdb

See more details on using hashes here.

File details

Details for the file plotly_kz_map-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for plotly_kz_map-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c68cda49a4d218c2d7c43a253df324706288019a6eb6b7f9abc5096e9175c452
MD5 8206abf0390e285aa745ff442445e923
BLAKE2b-256 f06900fe84d79336bb679d30ef549935a64fcf224c892cbbe9780489bd89e7d6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page