9.2 NumPy and Pandas
NumPy handles fast number crunching. Pandas handles tables of data like a supercharged spreadsheet.
Chapter 9: Tools and Technologies for AI
NumPy gives Python fast arrays and maths. Instead of looping through a million numbers one by one, NumPy does the whole thing at once - way faster. Most other AI libraries are built on top of it.
Pandas gives you the DataFrame: a table with rows and columns, like Excel but in code. You can load a CSV file, filter rows, fill missing values and calculate stats in a line or two.
Together they're the bread and butter of data prep - remember, that's most of the work in AI.
Key takeaways
NumPy = fast arrays and maths
Pandas = DataFrames (tables in code)
Both are essential for data prep