Skip to content

Instantly share code, notes, and snippets.

View natemcintosh's full-sized avatar

Nate McIntosh natemcintosh

  • Centers for Disease Control and Prevention / Center for Forecasting and Outbreak Analytics
  • Toleldo, OH
View GitHub Profile
@zsusswein
zsusswein / .Rprofile
Last active December 15, 2024 16:01
Include to default to precompiled package binaries on Linux
# Set default user agent header
options(HTTPUserAgent = sprintf(
"R/%s R (%s)",
getRversion(),
paste(
getRversion(),
R.version["platform"],
R.version["arch"],
R.version["os"]
)
@swo
swo / polars_cheat_sheet.py
Last active December 6, 2023 03:24
Polars cheat sheet
import polars as pl
# Making data frames ------------------------------------------
# with dictionary
df = pl.DataFrame({
'name': ['foo', 'bar', 'baz'],
'bar': [0, 1, 2],
'qux': [0.0, 1.0, 2.0]
})