Explain Codes LogoExplain Codes Logo

Python

Split Strings into Words With Multiple Word Boundary Delimiters

python
string-splitting
regex-patterns
string-processing

Converting Unix timestamp string to readable date

python
datetime
timestamp
pandas

List comprehension vs. lambda + filter

python
list-comprehensions
lambda-functions
filter-functions

How do I profile a Python script?

python
profiling
performance-optimizations
tools

How do I convert seconds to hours, minutes and seconds?

python
timedelta
datetime
performance

How can I display full (non-truncated) dataframe information in HTML when converting from Pandas dataframe to HTML?

python
dataframe
display-settings
pandas

Why do many examples use `fig, ax = plt.subplots()`

python
matplotlib
plotting
data-visualization

How to filter a dictionary according to an arbitrary condition function?

python
dict-comprehensions
functional-programming
performance-tuning

How do I get monitor resolution in Python?

python
prompt-engineering
functions
venv

Generate random integers between 0 and 9

python
random-number-generation
pseudo-random-number-generator
python-module

Csv file written with Python has blank lines between each row

python
csv-writing
python-quirks
file-handling

Matplotlib Different Size Subplots

python
matplotlib
subplots
grid-spec

Pandas: filter rows of DataFrame with operator chaining

python
dataframe
filtering
pandas

How do I get the full path of the current file's directory?

python
pathlib
file-path
python-3

How to convert local time string to UTC?

python
timezone-conversions
datetime-objects
python-3.9

How to convert an integer to a string in any base?

python
base-conversion
number-systems
data-types

Improve subplot size/spacing with many subplots

python
plotting
subplots
layout

H14 error in heroku - "no web processes running"

python
heroku
deployment
best-practices

Rename multiple files in a directory in Python

python
rename
bulk-renaming
file-system

How to suppress Pandas Future warning?

python
future-warning
pandas
warnings-management