Explain Codes LogoExplain Codes Logo

Python

How to round to 2 decimals with Python?

python
functions
best-practices
dataframe

What's the bad magic number error?

python
bytecode
magic-number
python-environment

Selecting multiple columns in a Pandas dataframe

python
pandas
dataframe
column-selection

Most idiomatic way to convert None to empty string?

python
best-practices
functions
performance

Right way to reverse a pandas DataFrame?

python
dataframe
best-practices
performance

Element-wise addition of 2 lists?

python
list-comprehensions
numpy-performance
element-wise-addition

How to deal with SettingWithCopyWarning in Pandas

python
pandas
dataframe
data-integrity

Deleting DataFrame row in Pandas based on column value

python
dataframe
pandas
data-manipulation

Transpose list of lists

python
transpose
list-comprehension
functional-programming

Printing Python version in output

python
version-info
python-versions
python-configuration

Use a list of values to select rows from a Pandas dataframe

python
dataframe
isin
performance

Django doesn't display newline character when rendering text from database

python
template-filters
html
django

Why can't Python parse this JSON data?

python
json-engineering
data-handling
best-practices

Combine two columns of text in pandas dataframe

python
pandas
dataframe
string-formatting

Python datetime to string without microsecond component

python
datetime
formatting
python-3.6

Controlling mouse with Python

python
mouse-control
scripting
automation

How to send email to multiple recipients using python smtplib?

python
email
smtplib
python-library

Converting between datetime, Timestamp and datetime64

python
pandas
datetime
timestamp

Count the number of occurrences of a character in a string

python
collections
functions
performance

Should I use 'has_key()' or 'in' on Python dicts?

python
prompt-engineering
best-practices
performance