Generate quick d3 maps from location data in pandas
Project description
#quickD3map
### D3 Point Maps from Pandas DataFrames
quickD3map allows you to rapidly generate D3.js maps from data from within
the pandas/ipython ecosystem by converting Latitude/Longitude Data in to points **Note: this is an experimental repo and not ready for use.**
With that said, basic maps can be generated and below are a few examples of how they are made.
#### To make the following interactive map:
![Examplemap](https://dl.dropboxusercontent.com/u/1803062/quickD3map/map1.png)
#### Install and Use from the Examples Directory
```python
import pandas as pd
from quickD3map import PointMap
#load data and plot
stations = pd.read_csv('data/weatherstations.csv')
#make a PointMap object
pm = PointMap(stations, columns = ['LAT','LON','ELEV'])
#display or write your map to file
pm.display_map()
pm.create_map(path="map.html")
````
###Project Goals
The goal of this project is rather limited in scope:
- be able to rapidly plot location data from Pandas dataframes
- be able to color by another column
- be able to scale by another column
- be able to plot connections between plots
I intend to include several map templates (geojson files) and will try to
figure out a template style that can provide the ability to include maps of many types.
Just thinking aloud here but the best way to do this would be to standardize the
geojson input types for features so that loading of data (as JSOn strings) can be seperated
from everything else (transformation,scaling, etc.)
###Thanks.
To Mike Bostocks and the D3JS team, as well as to Rob Story and the Folium libary.
#History
0.1.4 (2014-03-21)
++++++++++++++++++
* PointClass and LineMap updated. MultiColumnMap rolled into PointMap
0.1.2 (2014-03-21)
++++++++++++++++++
* Updated README with some rudimentary Documentation
0.1.1 (2014-03-19)
++++++++++++++++++
* Fix Manifest file to include template directory
0.1.0 (2014-03-19)
++++++++++++++++++
* First release on PyPI.
### D3 Point Maps from Pandas DataFrames
quickD3map allows you to rapidly generate D3.js maps from data from within
the pandas/ipython ecosystem by converting Latitude/Longitude Data in to points **Note: this is an experimental repo and not ready for use.**
With that said, basic maps can be generated and below are a few examples of how they are made.
#### To make the following interactive map:
![Examplemap](https://dl.dropboxusercontent.com/u/1803062/quickD3map/map1.png)
#### Install and Use from the Examples Directory
```python
import pandas as pd
from quickD3map import PointMap
#load data and plot
stations = pd.read_csv('data/weatherstations.csv')
#make a PointMap object
pm = PointMap(stations, columns = ['LAT','LON','ELEV'])
#display or write your map to file
pm.display_map()
pm.create_map(path="map.html")
````
###Project Goals
The goal of this project is rather limited in scope:
- be able to rapidly plot location data from Pandas dataframes
- be able to color by another column
- be able to scale by another column
- be able to plot connections between plots
I intend to include several map templates (geojson files) and will try to
figure out a template style that can provide the ability to include maps of many types.
Just thinking aloud here but the best way to do this would be to standardize the
geojson input types for features so that loading of data (as JSOn strings) can be seperated
from everything else (transformation,scaling, etc.)
###Thanks.
To Mike Bostocks and the D3JS team, as well as to Rob Story and the Folium libary.
#History
0.1.4 (2014-03-21)
++++++++++++++++++
* PointClass and LineMap updated. MultiColumnMap rolled into PointMap
0.1.2 (2014-03-21)
++++++++++++++++++
* Updated README with some rudimentary Documentation
0.1.1 (2014-03-19)
++++++++++++++++++
* Fix Manifest file to include template directory
0.1.0 (2014-03-19)
++++++++++++++++++
* First release on PyPI.
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
quickD3map-0.1.4.tar.gz
(553.7 kB
view details)
File details
Details for the file quickD3map-0.1.4.tar.gz
.
File metadata
- Download URL: quickD3map-0.1.4.tar.gz
- Upload date:
- Size: 553.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0d5c6743c3305e4703c1948db3ad21315dae5a7159efbd2d061d856c4463533 |
|
MD5 | f33b1495f1ce6d90bb1596456746cb45 |
|
BLAKE2b-256 | 0624223f28dd68de04a7a222a234b57391329f007e61bb51225320779bf66c36 |