By default, pandas will infer the data types of the columns when reading in a csv file. To speed up this read, you can specify the data types using the dtype...
Suppose you wish to iterate through a (potentially very large) file lazily rather than reading the entire file into memory.
To extract the integer value of days from a numpy.timedelta64 in pandas, use dt.days to obtain the days attribute as integers.
In pandas, you can use the tilde (~) to flip bool values: