Category: data-science

0

Average Chinese Character

Using Python’s Numpy is easy to draw how an average Chinese character would look like. I took the 2000 most common characters hanzidb.org, drew them onto images using `PIL` and calculated it’s average with...

Probabilistic view of blackjack for standing and hitting strategies. 0

Simulating and Visualizing Blackjack

Introduction I am sure you are familiar with the basic strategy of Blackjack. A diagram with the dealers face up card on the x-axis and the player cards on the y-axis. In each cell,...

Tennis API Logo 0

Tennis API

I published a tennis API on https://market.mashape.com/f-sm-jorquera/tennis-database. This API has methods to query all tennis matches on the ATP since 1968,  along with players and qualifications. Dynamic filtering, sorting and pagination of the results...

0

Tablifyme API

I created an API that creates a text table from a JSON array. Useful to send tables of data over email, Slack or Markdown. The API is available on Mashape: https://market.mashape.com/f-sm-jorquera/tablifyme Example: curl -X...

Redshift UDF Phone Number to Country 0

Redshift UDF Phone Number to Country

Redshift’s UDFs (User Defined Functions) permit to execute, with some limitations, certain Python libraries and custom code. In my case, I wanted to find a way to extract the country code from a phone...

Redshift Force Drop User 0

Redshift Force Drop User

Ever tried dropping a user in Redshift only to discover that user “user_1” cannot be dropped because the user has a privilege on some object. That’s not of great help Redshift. Luckily for us,...

0

SET Game Visual Solver

For those of you that have never played SET® before, SET® is a fast-paced game involving 81 unique cards with different combinations of four characteristics (color [red, green, or purple], shape [diamond, oval, or...