Hot take: python is too verbose to have an 80-character line length standard while retaining the semantic readibility it promotes as a feature.
-
-
This line is 95 characters. I can break at the comma and it comes down to 75. But 75 characters to do some really basic stuff. Maybe I can simplify the code, idk. Not the point. initial_chars = sorted(set([n[0].upper() for n in df['street'].dropna()]), key=locale.strxfrm)
Show this thread -
The purely-pandas version of doing this is no better, and is actually worse, as I can't specify the locale to sort characters properly.
Show this thread
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.