Articles — Python

Difference between python --version and python -v

Difference between python --version and python -v

Difference between python --version and python -v. These two commands have completely different purposes: python --version Shows the Python interpreter's version number Example output: Python 3.9.7 This is the standard...

Difference between python --version and python -v

Difference between python --version and python -v. These two commands have completely different purposes: python --version Shows the Python interpreter's version number Example output: Python 3.9.7 This is the standard...

When to use !pip, %pip or !uv in Python?

When to use !pip, %pip or !uv in Python?

For Jupyter Notebooks, the modern approach is: %pip install such as %pip install ShopifyAPI. %pip is a magic command The `%pip is called a "magic command" and it is preferred...

When to use !pip, %pip or !uv in Python?

For Jupyter Notebooks, the modern approach is: %pip install such as %pip install ShopifyAPI. %pip is a magic command The `%pip is called a "magic command" and it is preferred...

Find missing date data with Python

Find missing date data with Python

How to leverage Python to fill-out the missing dates on a file? Let's see that together!

Find missing date data with Python

How to leverage Python to fill-out the missing dates on a file? Let's see that together!

How to change tag style in bulk? For an experiment

How to change tag style in bulk? For an experiment

Not so long ago, I faced an issue while wanted to test a colleague idea: how can we test on which links user are more willing to click. TL;DR If my...

How to change tag style in bulk? For an experiment

Not so long ago, I faced an issue while wanted to test a colleague idea: how can we test on which links user are more willing to click. TL;DR If my...

How to save a .parquet file in Python?

How to save a .parquet file in Python?

To save a .parquet file with Python, you can use the pandas library, which provides a convenient way to read and write data in a variety of formats, including Parquet....

How to save a .parquet file in Python?

To save a .parquet file with Python, you can use the pandas library, which provides a convenient way to read and write data in a variety of formats, including Parquet....

Type hints in Python function

Type hints in Python function

While reviewing code from a colleague, I came across a -> pd.DataFrame in a Python function. I discovered that this indicates that the function is expected to return a pandas DataFrame.

Type hints in Python function

While reviewing code from a colleague, I came across a -> pd.DataFrame in a Python function. I discovered that this indicates that the function is expected to return a pandas DataFrame.