Explain Codes LogoExplain Codes Logo

Python

Finding what methods a Python object has

python
introspection
error-handling
methods

How can I make a dictionary (dict) from separate lists of keys and values?

python
zip-dict
memory-management
code-readability

Adding a method to an existing object instance in Python

python
dynamic-methods
code-maintenance
best-practices

How do I print the full NumPy array without truncation?

python
numpy
printoptions
data-structures

Join List of Lists in Python

python
flattening
itertools
performance

Secondary axis with twinx(): how to add to legend

python
matplotlib
data-visualization
legend

What's the correct way to convert bytes to a hex string in Python 3?

python
bytes
hex
conversion

How do I get the number of elements in a list (length of a list) in Python?

python
len
performance
iterators

Sending "User-agent" using Requests library in Python

python
user-agent
web-scraping
http-headers

Creating an empty Pandas DataFrame, and then filling it

python
pandas
dataframe
batch-processing

How do I use a decimal step value for range()?

python
decimal-steps
generator
itertools

Counting the number of True Booleans in a Python List

python
counting
list-comprehensions
numpy

How do I measure elapsed time in Python?

python
timing
performance
best-practices

How to install python3 version of package via pip on Ubuntu?

python
pip
virtual-environment
package-installation

Detect and exclude outliers in a pandas DataFrame

python
pandas
outliers
data-cleaning

Purpose of "%matplotlib inline"

python
matplotlib
jupyter
data-visualization

Find full path of the Python interpreter?

python
sys-executable
virtual-environments
pathfinding

Running Bash commands in Python

python
subprocess
bash-commands
best-practices

What is memoization and how can I use it in Python?

python
memoization
caching
functools

How to comment out a block of Python code in Vim

python
vim
commenting
efficiency