Learn Before
Classification

Data Types in NumPy

While Python natively provides built-in data types such as booleans, floats, and integers, NumPy offers additional specialized data types. These are often referred to by single-character codes:

  • i: integer
  • b: boolean
  • u: unsigned integer
  • f: float
  • c: complex float
  • m: timedelta
  • M: datetime
  • O: object
  • S: string
  • U: unicode string
  • V: void (fixed chunk of memory for other types)

0

2

Updated 2026-06-29

Tags

Python Programming Language

Data Science