User Tools

Site Tools


common pandas data types

data type description supports missing values
float The NumPy float type Yes
int The NumPy integer type No
'Int64' pandas nullable integer type Yes
object The NumPy type for storing strings (and mixed types)
'category' pandas categorical type Yes
bool The NumPy Boolean type No.
None becomes False, np.nan becomes True.
'boolean' pandas nullable Boolean type Yes
datetime64[ns] The NumPy date type Yes (NaT)

Ref:- (Pandas 1.x Cookbook, by Matt Harrison and Theodore Petrou, second edition, published in 2020) → Chapter 1 → page-7

What packages does pandas depend on?


Instead of



data point | as of pandas 1.1.2, does not work.



Instead of

from pandas.util.testing import assert_frame_equal


from pandas.testing import assert_frame_equal

data point:

Using from pandas.util.testing import assert_frame_equal in pandas 1.1.2, I get

FutureWarning: pandas.util.testing is deprecated. Use the functions in the public API at pandas.testing instead.
pandas_notes.txt · Last modified: 2023/11/12 09:06 by raju