Human: What is a good Python code to check datatype of columns. Assistant: 
Here is a Python code to check datatype of column

import pandas as pd

def _check_datatype(column):
    """Check the datatype of the given column.
    This will check the datatype of the given column and return the datatype.

    """
    if column.dtype == 'object':
        return 'object'
    else:
        return column.dtype

# Enter the column
column = pd.Series([1, 2, 3])

# Calling the function
print((_check_datatype(column)))

#Example Output
# int64

#Remember to inspect code for bugs.