Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
badlibrarian
76 days ago
|
parent
|
context
|
favorite
| on:
Baseball durations after the pitch clock
Amusing to see "dos2unix" pop up in the middle of the article. Python and Pandas can handle newlines directly, one pattern is:
with open("gametimes.csv", "r", newline="") as f: df = pd.read_csv(f)
zahlman
76 days ago
[–]
The standard library `csv` used to expect files in binary mode in 2.x and it annoyed me to no end.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: