Explain Codes LogoExplain Codes Logo

Python

How do I append to a file?

python
file-handling
file-modes
file-io

Find intersection of two nested lists?

python
set-operations
functional-programming
performance-optimization

Replace all elements of NumPy array that are greater than some value

python
numpy
performance
optimizations

How to install PIL with pip on Mac OS?

python
pip-installation
mac-os
virtual-environment

Virtualenv Command Not Found

python
venv
pip
virtualenv

Getting today's date in YYYY-MM-DD in Python?

python
date-formatting
datetime
pythonic-way

Calling C/C++ from Python?

python
cross-platform
performance
best-practices

Removing white space around a saved image

python
matplotlib
image-processing
plotting

How do I count the occurrences of a list item?

python
collections
counter
dataframe

How can I break out of multiple loops?

python
function-refactoring
loop-management
best-practices

How to copy files

python
file-operations
shutil
pathlib

Pandas get rows which are NOT in other dataframe

python
dataframe
pandas
data-operations

How can I flush the output of the print function?

python
best-practices
performance
tools

Accessing the index in 'for' loops

python
enumerate
pythonic
iterators

What is the use of "assert" in Python?

python
assertion-error
debugging-tool
best-practices

Typeerror: sequence item 0: expected string, int found

python
string-conversion
data-type-validation
unicode-strings

Stripping everything but alphanumeric chars from a string in Python

python
regex
string-sanitization
performance-optimization

How can I remove a key from a Python dictionary?

python
key-removal
dictionary
best-practices

Limiting floats to two decimal points

python
decimal-arithmetic
float-limitation
precision-matters

How do I detect the Python version at runtime?

python
python-version
version-control
python-3