Andrew Treadway

All about Python Sets

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

6 years ago

3 ways to scrape tables from PDFs with Python

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

6 years ago

Four ways to reverse a string in R

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

6 years ago

How to get options data with Python

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

6 years ago

Don’t forget the “utils” package in R

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

6 years ago

Speed Test: Sapply vs. Vectorization

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

6 years ago

Why defining constants is important – a Python example

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

6 years ago

Creating a word cloud on R-bloggers posts

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

6 years ago

Scraping data from a JavaScript webpage with Python

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

6 years ago

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

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

6 years ago