Explain Codes LogoExplain Codes Logo

Python

Nameerror: Global name 'xrange' is not defined in Python 3

python
python-3
python-2
best-practices

What is the fastest way to send 100,000 HTTP requests in Python?

python
async-functions
concurrent-programming
http-clients

How to add hours to current time in python

python
datetime-manipulation
timezones
dateutil

How to TRUNCATE TABLE using Django's ORM?

python
django-orm
bulk-deletion
referential-integrity

Check if multiple strings exist in another string

python
functions
list-comprehensions
regular-expressions

How can I open multiple files using "with open" in Python?

python
file-management
error-handling
concurrency

Pytest: assert almost equal

python
assertions
float-comparison
testing

Creating a dictionary from a csv file?

python
dataframe
pandas
csv

How to replace whitespaces with underscore?

python
regex
functions
best-practices

How to skip iterations in a loop?

python
exception-handling
try-except
continue

Numpy Array Initialization (Fill With Identical Values)

python
numpy
array-initialization
performance-tips

How to check if a string in Python is in ASCII?

python
functions
unicode
encoding

How do I convert an IPython Notebook into a Python file via commandline?

python
jupyter
nbconvert
command-line

Anaconda Export Environment File

python
environment-variables
conda
environment-management

Does Python optimize tail recursion?

python
recursion
tail-call-optimization
debugging

How to cheaply count lines in a large file in Python?

python
prompt-engineering
performance
best-practices

Remove unwanted parts from strings in a column

python
pandas
lambda
dataframe

How to replace text in a string column of a Pandas dataframe?

python
pandas
dataframe
regex

How can I percent-encode URL parameters in Python?

python
url-encoding
python-3
urllib-parse

Is it bad to have my virtualenv directory inside my git repository?

python
venv
best-practices
tools