Home › Class 12 Skill Subjects › AI 843 › Mind maps

AI 843: mind maps for every unit

One map per unit of the CBSE Class 12 Artificial Intelligence handbook, for revision in a single glance. Each branch is a section of the book. Print any map on one landscape page, or open the text version on your phone.

The text version of each map is open below it. The map itself scrolls sideways.

Unit 1: Python Programming-II

Assessed in practicals only (lab test, practical file and viva).

Mind map: Unit 1 Python Programming-IIUnit 1PythonProgramming-IIPractical onlyNumerical Python: arrayprocessingRank = number of dimensionsnp.array() from a list ortupleVectorised maths on wholearrays1.1 NumPy recapSeries: one-dimensional,labelledDataFrame: two-dimensionaltableFrom NumPy arrays, dict oflists, list of dictsUnequal rows are padded withNaN1.1 PandasstructuresAdd column: df['new'] = [...]Add or change row:df.loc['label']drop(): axis=0 rows, axis=1columnsshape, index, columns,head(), tail()Rows and columnsCSV = comma-separated valuespd.read_csv(file, sep,header=0)df.to_csv(file, index=False)Upload to Colab beforereading1.2 CSV filesShown as NaNisnull(), then sum() to countdropna() removes rowsfillna(0) or fillna(mean)Use np.nan: np.NaN fails inNumPy 2.01.3–1.4 Missingvalueshead(5) and tail(10)describe(), count(), mean(),median()Count missing values percolumnLinear Regression: AdvancedLearners, not evaluatedPractical fileprograms
Text version of this map
  • 1.1 NumPy recap
    • Numerical Python: array processing
    • Rank = number of dimensions
    • np.array() from a list or tuple
    • Vectorised maths on whole arrays
  • 1.1 Pandas structures
    • Series: one-dimensional, labelled
    • DataFrame: two-dimensional table
    • From NumPy arrays, dict of lists, list of dicts
    • Unequal rows are padded with NaN
  • Rows and columns
    • Add column: df['new'] = [...]
    • Add or change row: df.loc['label']
    • drop(): axis=0 rows, axis=1 columns
    • shape, index, columns, head(), tail()
  • 1.2 CSV files
    • CSV = comma-separated values
    • pd.read_csv(file, sep, header=0)
    • df.to_csv(file, index=False)
    • Upload to Colab before reading
  • 1.3–1.4 Missing values
    • Shown as NaN
    • isnull(), then sum() to count
    • dropna() removes rows
    • fillna(0) or fillna(mean)
    • Use np.nan: np.NaN fails in NumPy 2.0
  • Practical file programs
    • head(5) and tail(10)
    • describe(), count(), mean(), median()
    • Count missing values per column
    • Linear Regression: Advanced Learners, not evaluated