Code
import pandas as pd
import geopandas as gpd
import folium
import itables
import geoplot
jpmap = gpd.read_file("../../census/jpmap.gpkg")
itables.options.css = """
.dt-column-header {
font-size: small;
}
"""
itables.show(pd.DataFrame(jpmap.loc[:,["ST","state","population","epopulation","eng","eeng","jpn","ejpn","bilingual","ebilingual",
"jpnloweng","ejpnloweng","pctjpn","pctbilingual","bilingualratio"]]),
maxBytes=200000, style="width:100%",
buttons=["pageLength", {"extend": "colvisGroup","text": "Hide Errors","hide": [1,3,5,7,9,11]},
{"extend": "colvisGroup","text": "Show all","show": "*"}],
columnDefs=[{"className":"dt-left", "targets":[0]},
{"targets":[1,3,5,7,9,11], "visible":False}],
columnControl=["order"],
ordering={"indicators": False, "handler": False})| Loading ITables v2.9.1 from the internet... (need help?) |
| ⓘST | state | population | epopulation | eng | eeng | jpn | ejpn | bilingual | ebilingual | jpnloweng | ejpnloweng | pctjpn | pctbilingual | bilingualratio |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| AL | alabama | 4793030 | 601 | 4503218 | 5359 | 2528 | 541 | 1228 | 414 | 1300 | 327 | 0.052743 | 0.025621 | 48.575949 |
| AK | alaska | 689070 | 169 | 585162 | 2727 | 1494 | 390 | 1033 | 281 | 461 | 254 | 0.216814 | 0.149912 | 69.143240 |
| AZ | arizona | 6981320 | 285 | 5184054 | 11544 | 7952 | 907 | 5119 | 706 | 2833 | 511 | 0.113904 | 0.073324 | 64.373742 |
| AR | arkansas | 2869111 | 548 | 2630451 | 4441 | 935 | 266 | 495 | 195 | 440 | 218 | 0.032588 | 0.017253 | 52.941176 |
| CA | california | 37121454 | 487 | 20642638 | 54450 | 133419 | 4594 | 78900 | 3190 | 54519 | 2222 | 0.359412 | 0.212546 | 59.137004 |
| CO | colorado | 5549558 | 577 | 4650283 | 9223 | 5893 | 658 | 4494 | 563 | 1399 | 266 | 0.106189 | 0.080979 | 76.259969 |
| CT | connecticut | 3442817 | 90 | 2638366 | 6723 | 3281 | 640 | 2322 | 504 | 959 | 329 | 0.095300 | 0.067445 | 70.771106 |
| DE | delaware | 966580 | 46 | 820336 | 3432 | 805 | 272 | 603 | 229 | 202 | 102 | 0.083283 | 0.062385 | 74.906832 |
| DC | district of columbia | 640841 | 66 | 518478 | 3204 | 1054 | 285 | 692 | 244 | 362 | 145 | 0.164471 | 0.107983 | 65.654649 |
| FL | florida | 21289728 | 707 | 14769458 | 25976 | 12222 | 1183 | 8153 | 993 | 4069 | 647 | 0.057408 | 0.038295 | 66.707577 |
| (41 more rows not shown) | ||||||||||||||