Last active
September 30, 2017 18:27
-
-
Save soichisumi/32240c0b9661872f7787fe4329d44475 to your computer and use it in GitHub Desktop.
都道府県+市区町村の名前の最大長を調べた
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
import pandas as pd | |
import math as ma | |
import sys | |
import googlemaps | |
df = pd.read_csv('jusho.csv') | |
maxlen=0 | |
maxlenKen=0 | |
maxlenSi=0 | |
for key, row in df.iterrows(): | |
if maxlenKen<len(row[1]): | |
maxlenKen=len(row[1]) | |
if not row.isnull()[2] and maxlenSi<len(row[2]): | |
maxlenSi=len(row[2]) | |
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
maxLen=11 | |
maxlenKen=4 | |
maxlenSi=7 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment