Skip to content

Instantly share code, notes, and snippets.

View steve-liang's full-sized avatar

daboliang steve-liang

  • San Diego, CA
View GitHub Profile
@johndpope
johndpope / install-tensorflow-using-anaconda.md
Last active October 9, 2023 13:19 — forked from sethbunke/install-tensorflow-using-anaconda.txt
Create a virtual environment using Anaconda and install various ML tools and TensorFlow
@conormm
conormm / r-to-python-data-wrangling-basics.md
Last active December 9, 2025 02:18
R to Python: Data wrangling with dplyr and pandas

R to python data wrangling snippets

The dplyr package in R makes data wrangling significantly easier. The beauty of dplyr is that, by design, the options available are limited. Specifically, a set of key verbs form the core of the package. Using these verbs you can solve a wide range of data problems effectively in a shorter timeframe. Whilse transitioning to Python I have greatly missed the ease with which I can think through and solve problems using dplyr in R. The purpose of this document is to demonstrate how to execute the key dplyr verbs when manipulating data using Python (with the pandas package).

dplyr is organised around six key verbs:

@trestletech
trestletech / server.R
Last active October 3, 2025 05:03
A Shiny app combining the use of dplyr and SQLite. The goal is to demonstrate a full-fledged, database-backed user authorization framework in Shiny.
library(shiny)
library(dplyr)
library(lubridate)
# Load libraries and functions needed to create SQLite databases.
library(RSQLite)
library(RSQLite.extfuns)
saveSQLite <- function(data, name){
path <- dplyr:::db_location(filename=paste0(name, ".sqlite"))