Explain Codes LogoExplain Codes Logo

Python

How do I disable the security certificate check in Python requests

python
ssl-checks
requests-library
security-risks

How do I create multiline comments in Python?

python
commenting-strategy
docstrings
code-readability

How do I create a temporary directory in Python?

python
tempfile
contextlib
pathlib

How do I create a slug in Django?

python
django
slug
models

How do I copy a string to the clipboard?

python
clipboard
tkinter
pyperclip

How do I convert a datetime to date?

python
datetime
date
timezone

How do I concatenate text files in Python?

python
file-handling
io
performance

How do I combine two dataframes?

python
dataframe
pandas
data-merging

How do I check which version of Python is running my script?

python
python-version
assertion
sys-version-info

How do I check the operating system in Python?

python
system-information
os-identification
python-modules

How do I check if a string is Unicode or ASCII?

python
functions
best-practices
collections

How do I check if a directory exists in Python?

python
pathlib
file-system
directory-existence

How can I see normal print output created during pytest run?

python
pytest
testing
debugging

How can I scrape a page with dynamic content (created by JavaScript) in Python?

python
scraping
javascript-rendering
selenium

How can I read large text files line by line, without loading them into memory?

python
best-practices
memory-management
file-io

How can I print variable and string on same line in Python?

python
functions
formatting
strings

How can I partition (split up, divide) a list based on a condition?

python
partition
list
comprehension

How can I multiply all items in a list together with Python?

python
functions
collections
best-practices

How can I map True/False to 1/0 in a Pandas DataFrame?

python
pandas
dataframe
data-type-conversion

How can I get dictionary key as variable directly in Python (not by searching from value)?

python
list-comprehension
pythonic-way
key-based-operations