Last active
December 21, 2016 15:09
-
-
Save nygeog/03e806283c1923fb39ff538477155060 to your computer and use it in GitHub Desktop.
Classify for Cartodb Torque for Graduated Symbols with Pandas
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
df['col'] = ((((df['col']-df['col'].min()) / (df['col'].max() - df['col'].min()))*255).round()).astype(int) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From this post: http://gis.stackexchange.com/questions/153606/cartodb-torque-show-severity-by-size-of-marker/153810#153810
And fo' SQL see: https://gist.github.com/nygeog/3073ab2a71d4775f0d1eabd456db0f1a