[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip / qa] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/wsr/ - Worksafe Requests

[Advertise on 4chan]


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: xsriqtv.jpg (50 KB, 750x842)
50 KB
50 KB JPG
I'm thinking about converting a CSV file into a chloropleth map using Python for an university task.
I have no clue about how I'm gonna do it. I already have the CSV file with all the info.
Any idea?
>>
Load the csv with pandas
>>
>>1120957
Load the CSV in Python, write a loop where for each value in the CSV you can do some shit (i.e. apply colors and shit).
>>
>>1120957
Find a SVG that has the regions of interest, create a value-->colour mapping table, create a mapping from the regions to the key in the CSV, then change the fill colours in the SVG and render it.



Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.