Explain Codes LogoExplain Codes Logo

Python

Indentationerror: unindent does not match any outer indentation level, although the indentation looks correct

python
indentation
linting-tools
code-readability

Import multiple CSV files into pandas and concatenate into one DataFrame

python
pandas
dataframe
vectorized-operations

Importerror: No module named 'django.core.urlresolvers'

python
django-2.0
importerror
refactoring

Importerror: No module named Crypto.Cipher

python
importerror
pip-install
virtual-environment

Import a file from a subdirectory?

python
importing-modules
package-structure
python-best-practices

How to write to a file, using the logging Python module?

python
logging
file-handling
exception-handling

How to write a file or data to an S3 object using boto3

python
boto3
aws-credentials
data-storage

How to validate a url in Python? (Malformed or not)

python
url-validation
python-stdlib
urlparse

How to use string.replace() in python 3.x

python
string-manipulation
text-substitution
python-3.x

How to use Python to execute a cURL command?

python
requests
http-methods
performance

How to use multiprocessing pool.map with multiple arguments

python
multiprocessing
pool
map

How to use "/" (directory separator) in both Linux and Windows in Python?

python
pathlib
os.path
file-system

How to unzip a list of tuples into individual lists?

python
list-comprehension
map-function
zip-function

How to test if a string contains one of the substrings in a list, in pandas?

python
pandas
regex
string-matching

How to switch position of two items in a Python list?

python
list-manipulation
swap
tuple-unpacking

How to strip all whitespace from string

python
regex
string-manipulation
whitespace-removal

How to step through Python code to help debug issues?

python
debugging
pdb
ide

How to sort with lambda in Python

python
lambda
functions
best-practices

How to smooth a curve for a dataset

python
dataframe
pandas
data-visualization

How to skip the headers when processing a csv file using Python?

python
csv-reader
dataframe
pandas