Ben Chuanlong Du's Blog

It is never too late to learn.

Get Location of Max Value in a Pandas Series

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

idxmax Return the row label of the maximum value.

argmax: Return int position of the largest value in the Series.

Manipulate Bits in Rust

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

bitvec

bitvec Addresses memory by bits, for packed collections and bitfields bitvec provides a foundational API for bitfields in Rust. It specializes standard-library data structures (slices, arrays, and vectors of bool …

Foreign Language Integration in Rust

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

cc

cc is a build-time dependency for Cargo build scripts to assist in invoking the native C compiler to compile native C code into a static archive to be linked into …

Tips on Git-Filter-Repo

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Installation on Ubuntu / Debian

wajig install git-filter-repo

Example Usages

Note: git-filter-repo changes the history commits of a Git repository which is a dangerous operation. Make sure you know what you are …