Understanding Data Types in PythonA Python Integer Is More Than Just an IntegerA Python List Is More Than Just a ListFixed-Type Arrays in PythonCreating Arrays from Python ListsCreating Arrays from ScratchNumPy Standard Data TypesThe Basics of NumPy ArraysNumPy Array AttributesArray Indexing: Accessing Single ElementsArray Slicing: Accessing SubarraysReshaping of ArraysArray Concatenation and SplittingComputation on NumPy Arrays: Universal FunctionsThe Slowness of LoopsIntroducing UFuncsExploring NumPy’s UFuncsAdvanced Ufunc FeaturesUfuncs: Learning MoreAggregations: Min, Max, and Everything in BetweenSumming the Values in an ArrayMinimum and MaximumExample: What Is the Average Height of US Presidents?Computation on Arrays: BroadcastingIntroducing BroadcastingRules of BroadcastingBroadcasting in PracticeComparisons, Masks, and Boolean LogicExample: Counting Rainy DaysComparison Operators as ufuncsWorking with Boolean ArraysBoolean Arrays as MasksFancy IndexingExploring Fancy IndexingCombined IndexingExample: Selecting Random PointsModifying Values with Fancy IndexingExample: Binning DataSorting ArraysFast Sorting in NumPy: np.sort and np.argsortPartial Sorts: PartitioningExample: k-Nearest NeighborsStructured Data: NumPy’s Structured ArraysCreating Structured ArraysMore Advanced Compound TypesRecordArrays: Structured Arrays with a TwistOn to Pandas