Chapter 1: Introduction to machine learning and Python

Abstract

This chapter covers basic definitions of Artificial Intelligence, machine learning, and data mining. It then provides step-by-step instructions on how to set up Python Anaconda and Jupyter Notebook and all useful shortcuts. Afterward, an introduction to the following Python concepts is given; including data structures, e.g., lists, dictionary, tuples, sets, and control flows, e.g., if statements, for loops, nested loops, while loops, list comprehension, and functions. These concepts are explained using step-by-step examples. Next, pandas and numpy libraries are discussed in depth with multiple oil and gas examples. Various pandas' functions and concepts such as column selection, basic ...

Get Machine Learning Guide for Oil and Gas Using Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.