Describe the different data types supported by NumPy.
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Describe the different data types supported by NumPy. Every NumPy array holds elements of a single type, so explain which types exist and what each one stores.
```hint Organizing the answer
Group the types into families (booleans, integers, floats, complex numbers, text, dates and times, and the rest) and note how many bytes one element of each takes.
```
### What a Strong Answer Covers
- The object NumPy uses to describe an element's type and size.
- The numeric families with their bit widths and the defaults NumPy picks.
- The non-numeric types: text, dates and durations, Python objects, and records with named fields.
- Practical consequences of fixed-size types, such as overflow, precision, and memory use.
### Follow-up Questions
- What dtype does `np.array([1, 2, None])` get, and what does that cost you?
- Why can a NumPy integer array not hold `NaN`, and how does pandas deal with missing integers?
- When would you store a feature matrix as `float32` instead of `float64`?
- What happens when you assign the string `"elephant"` into an array of dtype `U5`?
Overview: Describe the data types NumPy supports, from booleans, integers and floats to strings, datetimes, object arrays and structured records. Tests understanding of dtype objects, bit widths and defaults, and the practical effects of fixed-size types on memory, precision and overflow.