Explain Codes LogoExplain Codes Logo

Python

What is the difference between __str__ and __repr__?

python
best-practices
debugging
logging

Checking if a string can be converted to float in Python

python
float-conversion
regex-pattern
exception-handling

Reloading submodules in IPython

python
prompt-engineering
importlib
reload

Python and SQLite: insert into table

python
bulk-inserts
parameterized-queries
sql-injections

Create a dictionary with comprehension

python
dict-comprehensions
python-3.7
performance-tips

Removing duplicates in lists

python
remove-duplicates
list-comprehension
python-3.8

Implement touch using Python?

python
file-handling
permissions
timestamps

Convert string date to timestamp in Python

python
date-conversion
timestamp
datetime

How to reset index in a pandas dataframe?

python
dataframe
reset-index
pandas

Is there a simple way to delete a list element by value?

python
list-comprehension
error-handling
performance-optimization

Rotate label text in seaborn

python
plotting
seaborn
label-rotation

How to get an absolute file path in Python

python
pathlib
file-path
os-path

Python Anaconda - How to Safely Uninstall

python
uninstall
anaconda
python-setup

Convert hex string to integer in Python

python
functions
error-handling
validation

How to search and replace text in a file

python
file-manipulation
error-handling
regular-expressions

How to input a regex in string.replace?

python
regex
string-replacement
regular-expressions

Libxml install error using pip

python
pip-installation
environmental-variables
package-management

Reimport a module while interactive

python
importlib
reload
ipython

Alphabet range in Python

python
alphabet-range
ascii-values
custom-range-function

How do I create a constant in Python?

python
constants
emulation
typing-final