Import Data
General Info
Useful Snippets

2.0.8 Specify data types of imported data from text file

Example:

import pandas as pd

# Set the datatypes of columns in your imported dataframe  
DF = pd.read_csv("/Path/to/your/data.csv"
                    ,   dtype = {'pclass'   :  'int32' ,   # use 'dtype', and specify a dictionary of column names and data types for each column
                                 'survived' :  'int64' ,
                                 'name'     :  'object' }
                         )