Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Geopandas example #1297

Merged
merged 4 commits into from
Oct 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ repos:
- id: codespell
additional_dependencies:
- tomli
- repo: https://github.com/hoxbro/clean_notebook
rev: v0.1.13
hooks:
- id: clean-notebook

ci:
autofix_prs: false
4 changes: 4 additions & 0 deletions doc/user_guide/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ Contents:
`12. Inspection Reductions <Inspection_Reductions.html>`_
Using reduction to inspect rather than aggregate data.

`13. GeoPandas <Geopandas.html>`_
GeoPandas support in Datashader.

.. toctree::
:hidden:
:maxdepth: 3
Expand All @@ -63,3 +66,4 @@ Contents:
Performance <Performance>
Geography <Geography>
Inspection Reductions <Inspection_Reductions>
GeoPandas <Geopandas>
51 changes: 10 additions & 41 deletions examples/tiling.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"metadata": {},
"outputs": [],
"source": [
"from datashader.tiles import render_tiles"
Expand Down Expand Up @@ -73,9 +71,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"metadata": {},
"outputs": [],
"source": [
"import pandas as pd\n",
Expand Down Expand Up @@ -106,9 +102,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"metadata": {},
"outputs": [],
"source": [
"import datashader as ds\n",
Expand All @@ -133,9 +127,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"metadata": {},
"outputs": [],
"source": [
"import datashader.transfer_functions as tf\n",
Expand All @@ -160,9 +152,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"metadata": {},
"outputs": [],
"source": [
"from PIL import ImageDraw\n",
Expand All @@ -184,9 +174,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"metadata": {},
"outputs": [],
"source": [
"full_extent_of_data = (-500000, -500000, 500000, 500000)\n",
Expand Down Expand Up @@ -224,9 +212,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"metadata": {},
"outputs": [],
"source": [
"from bokeh.plotting import figure\n",
Expand Down Expand Up @@ -302,9 +288,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"metadata": {},
"outputs": [],
"source": [
"full_extent_of_data = (int(-20e6), int(-20e6), int(20e6), int(20e6))\n",
Expand All @@ -331,9 +315,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"metadata": {},
"outputs": [],
"source": [
"xmin, ymin, xmax, ymax = full_extent_of_data\n",
Expand All @@ -352,22 +334,9 @@
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.4.5"
"pygments_lexer": "ipython3"
}
},
"nbformat": 4,
Expand Down
16 changes: 1 addition & 15 deletions examples/user_guide/11_Geography.ipynb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"cells": [
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand All @@ -22,22 +21,9 @@
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.10"
"pygments_lexer": "ipython3"
}
},
"nbformat": 4,
Expand Down
17 changes: 1 addition & 16 deletions examples/user_guide/12_Inspection_Reductions.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand Down Expand Up @@ -228,7 +227,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand All @@ -246,22 +244,9 @@
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.16"
"pygments_lexer": "ipython3"
}
},
"nbformat": 4,
Expand Down
Loading