Explain Codes LogoExplain Codes Logo

Python

Best way to strip punctuation from a string

python
regex
string-manipulation
performance

Pretty-print an entire Pandas Series / DataFrame

python
pandas
dataframe
display-settings

How do I get the day of week given a date?

python
datetime
strftime
locale

How to filter Pandas dataframe using 'in' and 'not in' like in SQL

python
dataframe
list-comprehensions
performance

What do the Python file extensions, .pyc .pyd .pyo stand for?

python
bytecode
performance-boosting
file-extensions

Programmatically generate video or animated GIF in Python?

python
image-processing
gif-animation
imageio

How to embed an image or picture in Jupyter Notebook, either from a local machine or from a web resource?

python
markdown
image-embedding
jupyter-notebook

How to call a script from another script?

python
functions
modules
best-practices

How do I resize an image using PIL and maintain its aspect ratio?

python
image-processing
aspect-ratio
resampling

Simple way to measure cell execution time in IPython notebook

python
time-tracking
ipython-notebook
performance-optimization

How do I compare version numbers in Python?

python
version-comparison
packaging-version
best-practices

Removing Conda environment

python
conda
environment-management
version-control

Convert base-2 binary number string to int

python
bitwise-operations
binary-conversion
numpy-performance

How do I convert all of the items in a list to floats?

python
list-comprehension
numpy-performance
data-types

Working with UTF-8 encoding in Python source

python
unicode
utf-8
encoding

Error: " 'dict' object has no attribute 'iteritems' "

python
python-3
dict
compatibility

How can I mix LaTeX in with Markdown?

python
pandoc
latex
markdown

Is there a built in function for string natural sort?

python
natural-sort
file-paths
custom-order

'conda' is not recognized as internal or external command

python
conda
environment-variables
anaconda

How can I convert each item in the list to string, for the purpose of joining them?

python
list-comprehensions
type-conversion
string-joining