This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as py | |
df = ( | |
pd | |
.read_csv("some-data.csv") | |
.rename(columns={"value":"x"}) | |
.assign(new_col=lambda df: df["x"] * 2) | |
.loc[lambda df: df["y"] > 0.5] | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Example pyproject.toml file for new python projects. | |
# Fields followed by a double comment (##) need to be changed for your use case. | |
# Versions of example packages may be old! | |
# --- PROJECT CONFIGURATION --- # | |
[build-system] | |
requires = ["setuptools>=67", "wheel", "setuptools-git-versioning>=2.0,<3"] | |
build-backend = "setuptools.build_meta" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"=== VIM SETTINGS =====================================================================" | |
unlet! skip_defaults_vim | |
source $VIMRUNTIME/defaults.vim | |
syntax enable | |
filetype plugin indent on | |
set hlsearch incsearch ignorecase | |
set number relativenumber | |
set wrap linebreak |