twgardner2 / portfolio

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lessons learned in blood

Pandas dataframes must have a monotonic index in order to subset it by slice. Use .sort_index(). See this GitHub issue.

Bad Error Messages, How to Fix Them

  • ValueError: cannot reindex on an axis with duplicate labels: Check the date column of all input files, make sure you updated the most recent one to the new month, instead of just copying the old one down.

About


Languages

Language:Python 89.9%Language:Awk 8.8%Language:Shell 1.3%