Ben Chuanlong Du's Blog

It is never too late to learn.

Hash Password Using Python

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

Using the Python Package crypt

Format Python Code Using Black

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

Installation

pip3 install -U black[jupter]

Usage

The following code formats Python files and Jupyter/Lab Notebooks under the current directory.

black ./

References

Hands on the Polars Library in Python

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

Tips and Traps

  1. polars.DataFrame.unique and polars.Series.unique do not maintain the original order by default. To maintain the original order, pass the option maintain_order=True.

Polars

Polars is a blazingly fast DataFrames library implemented in Rust using Apache Arrow as memory model.