Parsing Your Data from the Habitica API

I’ve been using the Habitica Habit Tracker recently and it’s been a really good app to handle all sorts of history tracking. How much water do I drink? How many cigarettes do I smoke per day? Hint: recently very few.

Fortunately Habitica also has an API that lets you work with your entire history programmatically and to display it in every chart you can imagine.

The chart I wanted was to look at the history of how many cigarettes I had smoked per day. If you’re a smoker you probably know that it’s more of a day by day thing how much energy you have to fight the urge of simply going for another smoking break or lighting another cigarette.

Continue reading “Parsing Your Data from the Habitica API”

Concatenating / Merging .csv on the Linux or Mac OS Terminal

For data analysis .csv files with houndreds of thousands of data sets still play a role. You might think:

Hey, why worry about .csv, that’s an ancient format, nobody uses that!

Think again! CSV files, comma separated values (that also can be separated by tabs or kind of any character you want, but never mind that) are still used a lot on in data analysis as a raw input format.

Continue reading “Concatenating / Merging .csv on the Linux or Mac OS Terminal”