Explain Codes LogoExplain Codes Logo

Python

Automatically creating directories with file output

python
file-permissions
pathlib
cross-platform

Convert tuple to list and back

python
list
tuple
conversions

Dropping infinite values from dataframes in pandas?

python
dataframe
pandas
data-cleaning

How to suppress py.test internal deprecation warnings

python
pytest
warning-suppression
testing

Builtins.typeerror: must be str, not bytes

python
error-handling
python-3
typeerror

How do I check if I'm running on Windows in Python?

python
environment-identification
os-name
platform-system

Install a Python package into a different directory using pip?

python
pip
package-management
virtualenv

How can I do a line break (line continuation) in Python?

python
line-continuation
python-best-practices
code-readability

Generate a random date between two other dates

python
date-formatting
faker
datetime

Using a Python dict for a SQL INSERT statement

python
data-types
sql-injection
pandas

What is a Python equivalent of PHP's var_dump()?

python
debugging
variable-inspection
data-detection

Open() in Python does not create a file if it doesn't exist

python
file-io
context-managers
error-handling

How to send an email with Gmail as provider using Python?

python
email
smtplib
gmail-api

Is there a list of Pytz Timezones?

python
datetime
timezone
pytz

Filter pandas DataFrame by substring criteria

python
pandas
dataframe
string-filtering

How do you read a file into a list in Python?

python
file-reading
memory-management
list-comprehensions

Converting datetime.date to UTC timestamp in Python

python
datetime
timestamp
utc

Extract column value based on another column in Pandas

python
dataframe
pandas
data-extraction

How do I iterate through two lists in parallel?

python
iterators
list-comprehension
zip-function

Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

python
venv
python-dev
dependency-resolution