Loading tutorials
df["name"]. You should know the basic Python types int, float, and str. Familiarity with NumPy arrays helps but is not required.3 min readint, float, and str. NumPy experience helps but is not required.3 min readint, float, and str. In the previous chapter, a NumPy dtype such as int64 meant fixed-width values packed side by side in one contiguous array. The object dtype breaks that m3 min readobject dtype holds pointers to Python objects. Here you will see how a missing value can silently change a column's dtype, and how to prevent that.2 min readint64 are fixed-width, and that a missing value in an integer column turns it into float64. Here you will see how pandas extension dtypes avoid that promotion and what pd.NA does.3 min readdf.dtypes. It also assumes you know that each column has one dtype. Here you will see how pandas groups those columns internally, and why that matters for speed and memory.3 min readobject column holds pointers to Python objects. The goal is to read pandas memory numbers correctly, because the default numbers ca3 min readobject column stores pointers to Python strings, and that you can measure memory with memory_usage(deep=True). Here you will see how the category dtype stores repeated values and when it is worth using.3 min readint64 and float64 are the defaults, and that memory_usage() reports bytes per column. Downcasting replaces a wide numeric dtype with a narrower one that still holds every value in the column.2 min readDataFrame columns carry dtypes, why object columns cost more memory than fixed-width ones, and how category and downcasting save space. Here you apply those ideas at load time, so the large default-typed frame is never built.3 min readobject dtype, missing-value promotion, and pandas extension dtypes such as Int64 and string. Arrow-backed dtypes are one more family of extension dtypes. They store the column data in a different memory format.3 min read