Explain Codes LogoExplain Codes Logo

Python

How are lambdas useful?

python
function-factories
functional-programming
lambda-functions

Hasnext() for Python iterators?

python
iterators
sentinel-values
custom-wrappers

Getting number of elements in an iterator in Python

python
iterator
performance
memory-optimization

Getting a list of values from a list of dicts

python
list-comprehension
memory-efficiency
data-extraction

Getting a Hidden Password Input

python
password-security
input-handling
user-experience

Get the current git hash in a Python script

python
prompt-engineering
best-practices
tools

Get IP address of visitors using Flask for Python

python
proxy-engineering
flask
ip-address

Get exception description and stack trace which caused an exception, all as a string

python
exception-handling
logging
traceback

Get column index from column name in python pandas

python
dataframe
list-comprehension
keyerror

Generating HTML Documents in Python

python
html-generation
python-templates
html-standards

From list of integers, get number closest to a given value

python
performance
best-practices
dataframe

`from ... import` vs `import .`

python
import-best-practices
python-idioms
code-readability

Format y axis as percent

python
matplotlib
plotting
data-visualization

Formatting "yesterday's" date in Python

python
date-formatting
datetime
python-2-compatibility

Format / Suppress Scientific Notation from Pandas Aggregation Results

python
dataframe
formatting
pandas

Format numbers in Django templates

python
django-templates
number-formatting
locale-aware

Fitting empirical distribution to theoretical ones with Scipy (Python)?

python
dataframe
pandas
best-practices

Find where python is installed (if it isn't default dir)

python
prompt-engineering
functions
venv

Finding the first element in a sequence that adheres to a condition

python
generator-expressions
lazy-evaluation
best-practices

Finding Median of List in Python

python
functions
sorting
performance