All about Python Sets

5 years ago

See also my tutorials on lists and list comprehensions. Background on sets A set in Python is an unordered collection…

3 ways to scrape tables from PDFs with Python

6 years ago

This post will go through a few ways of scraping tables from PDFs with Python. To learn more about scraping…

Four ways to reverse a string in R

6 years ago

R offers several ways to reverse a string, include some base R options. We go through a few of those…

How to get options data with Python

6 years ago

In a previous post, we talked about how to get real-time stock prices with Python. This post will go through…

Don’t forget the “utils” package in R

6 years ago

With thousands of powerful packages, it's easy to glaze over the libraries that come preinstalled with R. Thus, this post…

Speed Test: Sapply vs. Vectorization

6 years ago

The apply functions in R are awesome (see this post for some lesser known apply functions). However, if you can…

Why defining constants is important – a Python example

6 years ago

This post will walk through an example of why defining a known constant can save lots of computational time. How…

Creating a word cloud on R-bloggers posts

6 years ago

This post will go through how to create a word cloud of article titles scraped from the awesome R-bloggers. Our…

Scraping data from a JavaScript webpage with Python

6 years ago

This post will walk through how to use the requests_html package to scrape options data from a JavaScript-rendered webpage. requests_html…

2 packages for extracting dates from a string of text in Python

6 years ago

This post will cover two different ways to extract dates from strings with Python. The main purpose here is that…