Exploring Line Lengths in Python Packages | Pythonic Perambulations
This week, Twitter upped their single-tweet character limit from 140 to 280, purportedly based on this interesting analysis of tweet lengths published on Twitter's engineering blog. The gist of the analysis is this: English language tweets display a roughly log-normal distribution of character counts, except near the 140-character limit, at which the distribution spikes: The analysis takes this as evidence that twitter users often "cram" their longer thoughts into the 140 character limit, and suggest that a 280-character limit would more naturally accommodate the distribution of people's desired tweet lengths. This immediately brought to mind another character limit that many Python programmers face in their day-to-day lives: the 79-character line limit suggested by Python's PEP8 style guide: Limit all lines to a maximum of 79 characters. I began to wonder whether popular Python packages (e.g. NumPy, SciPy, Pandas, Scikit-Learn, Matplotlib, AstroPy) display anything similar to what is
This week, Twitter upped their single-tweet character limit from 140 to 280, purportedly based on this interesting analysis of tweet lengths published on Twitter's engineering blog. The gist of the analysis is this: English language tweets display a roughly log-normal distribution of character counts, except near the 140-character limit, at which the distribution spikes: The analysis takes this as evidence that twitter users often "cram" their longer thoughts into the 140 character limit, and suggest that a 280-character limit would more naturally accommodate the distribution of people's desir
related reading
- GPT in 60 Lines of NumPy | Jay Modyjaykmody.com
- styleguide | Style guides for Google-originated open-source projectsgoogle.github.io
- Production Twitter on One Machine? 100Gbps NICs and NVMe are fast - Tristan Humethume.ca
- Linksdanielpaleka.com
- PyTorch internals : ezyang's blogblog.ezyang.com
- 7 Steps to Help You Make Your Matplotlib Bar Charts Beautiful | Towards Data Sciencetowardsdatascience.com
- How to Blow Up a Timeline - Remains of the Dayeugenewei.com
- PEP 8 – Style Guide for Python Code | peps.python.orgpeps.python.org
- python - Convert tweepy JSON object to dict - Stack Overflowstackoverflow.com
- PEP 8: The Style Guide for Python Codepep8.org
- [Live Demo] Python Setuptools Tutorial | Package Python Code | PIP Install Python Codeyoutube.com
- Pyplot tutorial — Matplotlib 3.11.0 documentationmatplotlib.org