Pages

Topics

Tools

↑↓navigate↵openescclose

All syntax guides

Short, practical guides on programming syntax, language fundamentals, and the tools developers reach for every day.

3,965 guides across 14 topics

Topics

Latest guides

A clean terminal window showing a formatted table with aligned columns and a highlighted sort arrow, representing Python PrettyTable's output.
Python

Python PrettyTable: Create, Format, and Sort Tables

Use Python PrettyTable to turn lists into readable terminal tables: install, add rows, align columns, sort data, and apply built-in styles.

PrettyTableTable FormattingCLI OutputData Presentation
Python code generating a Markdown table with grid borders and aligned columns
Python

Python Tabulate: Markdown Grid Headers and Alignment

Use Python's tabulate library to format Markdown tables, set custom headers, and control column alignment with pipe and grid formats.

pythontabulatemarkdowntable-formatting
A clean terminal window showing a neatly aligned text table rendered from Python list and DataFrame data
Python

Python Tabulate: Format Tables from Lists and DataFrames

python tabulate format tables from lists and dataframes: Learn how to use Python tabulate to format tables from lists, dictionaries, and pandas DataFrames with headers...

pythontabulatepandastable-formatting
A clock and a number with commas representing humanize's naturaltime, naturaldate, and intcomma formatting in Python.
Python

Using Python Humanize: naturaltime, naturaldate, and intcomma

Learn how to use Python's humanize library: naturaltime for relative times, naturaldate for calendar dates, and intcomma for number grouping.

humanizedatetime formattingnumber formattinglocalization
Illustration of a Python script converting raw byte counts, large integers, and timestamps into readable labels such as 1.5 MB, 1.2 million, and 2 hours ago.
Python

Python Humanize: Format File Sizes, Numbers, and Times

Learn to use the Python humanize library to turn raw bytes, large numbers, and timestamps into readable strings like 1.5 MB, 1.2 million, and 2 hours ago.

humanizepython-formattingdatetimefile-size
Illustration comparing two Python encoding detection libraries, chardet and charset_normalizer, with a scale balancing accuracy and speed.
Python

python chardet vs charset normalizer: Which to Use

python chardet vs charset normalizer: Compare chardet and charset_normalizer for Python encoding detection: API, accuracy, performance, and migration considerations.

encoding detectionchardetcharset-normalizerpython libraries
A document page with a magnifying glass revealing its character encoding label, representing encoding detection.
Python

Detect File and Byte Encoding with Python chardet

Use Python chardet to detect file and byte encoding from raw bytes, interpret confidence scores, and handle short or ambiguous inputs.

chardetencoding detectionfile encodingPython bytes
Comparison of RapidFuzz and FuzzyWuzzy libraries for fuzzy string matching in Python, with a speedometer indicating performance difference.
Python

Python RapidFuzz vs FuzzyWuzzy: A Practical Comparison

python rapidfuzz vs fuzzywuzzy: Compare Python's RapidFuzz and FuzzyWuzzy libraries for fuzzy string matching: API differences, performance, migration path, and produc...

fuzzy-matchingrapidfuzzfuzzywuzzystring-similarity
A Python code snippet showing RapidFuzz extract and extractOne functions comparing strings with similarity scores.
Python

Using Python RapidFuzz extract and extractOne for Fuzzy Matching

Using RapidFuzz extract and extractOne in Python: understand return values, limit and score_cutoff, scorer choice, and common pitfalls.

fuzzy matchingRapidFuzzstring similarityPython
A visual representation of fuzzy string matching using RapidFuzz functions, showing similarity scores between text samples.
Python

Python RapidFuzz: ratio, partial_ratio, and token_sort_ratio

RapidFuzz provides three main fuzzy matching scores in Python: ratio, partial_ratio, and token_sort_ratio. See how they differ and when to use each.

RapidFuzzfuzzy matchingstring similarityPython