Python Fundamentals
From zero to fluent — variables, functions, OOP, and the scientific stack tailored for petroleum workflows.
1st Edition · 2026
Data Science, Engineering Analytics, and AI
in the Petroleum Industry.
24 hands-on chapters taking you from Python fundamentals through PVT correlations, decline curve analysis, and reservoir simulation — all the way to deep learning and cloud deployment. Built on real Niger Delta field data.
By Johnpaul Okeke · SPE Member

What You'll Learn
Each chapter builds on the last — starting with Python basics and ending with production-grade ML models deployed on the cloud. Every concept is grounded in real petroleum engineering problems.
From zero to fluent — variables, functions, OOP, and the scientific stack tailored for petroleum workflows.
Load, clean, and transform LAS files, production CSVs, and well test data using Pandas and domain libraries.
Compute porosity, water saturation, and net pay with Archie's equation and triple-combo log interpretation.
Apply Arps decline curves, material balance, and nodal analysis to predict well and reservoir performance.
Build supervised and unsupervised models for facies classification, production prediction, and anomaly detection.
Ship production-ready Streamlit and Dash apps, deploy to the cloud, and integrate with real-time SCADA data.
Interactive Playground
Every chapter includes runnable Python code. Edit it, run it, see the output — right in your browser. No installation required.
>>> Hydrostatic Pressure: 6,500 psi
Table of Contents
Chapters 1 and 2 are free — no signup required. Activate the book to unlock all chapters, the interactive playground, and exercises.
Part I: Python Fundamentals
Part II: Petroleum Data Engineering
Part III: Reservoir & Production Engineering
Part IV: Machine Learning & AI
Who This Book Is For
Supplement your petroleum engineering coursework with practical Python skills that employers actually look for.
Automate repetitive calculations, build custom analysis tools, and make data-driven decisions faster.
Apply your existing programming skills to the energy sector — one of the world's largest and most data-rich industries.
Get the Book
$29
One-time purchase. Lifetime updates.
$49
Everything digital, plus the hardcover.
Weekly Python tips for the energy sector, early access to new chapters, and case studies from real Niger Delta field operations.