Informula

Informula

Share this post

Informula
Informula
How to Convert SQL into Python Pandas? Part 6 - Condition

How to Convert SQL into Python Pandas? Part 6 - Condition

Informula's avatar
Informula
Oct 16, 2023
∙ Paid

Share this post

Informula
Informula
How to Convert SQL into Python Pandas? Part 6 - Condition
Share

Previously on How to Convert SQL into Python Pandas? Part 5, we talked about how to convert SQL statements into Pandas syntax. In this article, we will continue to discover more scenarios and operations. (Data import into Python)

Condition (if)

-- SQL
SELECT *, 
iif (BillingCountry = 'Germany' , 'Germany', 'Non-Germany') Germany
FROM main.invoices;

Keep reading with a 7-day free trial

Subscribe to Informula to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Informula
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share