Skip to content

Instantly share code, notes, and snippets.

View bgromov's full-sized avatar

Boris Gromov bgromov

View GitHub Profile
@bgromov
bgromov / pandas-query.md
Last active November 3, 2022 10:10
Pandas: DataFrame.query() for complex data types

Pandas: DataFrame.query() for complex data types

Consider the following pandas DataFrame:

df = pd.DataFrame([[[1, 2, 3]], [[4, 5, 6]], [[7, 8, 9]], [[0, 1, 2]]], columns=['a'])
 a
@bgromov
bgromov / ANSI.md
Created September 26, 2022 12:24 — forked from fnky/ANSI.md
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27