human
Write me a the Python program you requested given the following:
I am working on the file "07-Data-Visualization/MoreAPD_class.ipynb".
The first task is:
Fixing Data Types
Date and Time

Working with dates can be tricky. Often dates and times are coded as strings and need to be converted to a date and time data format.
Python provides a module datetime to deal with converting parsing and formatting dates and times. See https://docs.python.org/2/library/datetime.html
The pandas package provides functionality to convert text fields into date/time fields...given the values adhere to a given format. See http://pandas.pydata.org/pandas-docs/version/0.20/generated/pandas.to_datetime.html

Create a proper text field
In order to use the text to date/time converter our text columns need to have the appropriate format.
Can you write Python program for it?
assistant
#Here is the Python program you requested.

df[['occur_date', 'occur_time']][0:5]

# function currying
def fixdatetime(fld):
    def _fix(s):
        date_col = '%s_date' % fld
        time_col = '%s_time' % fld
        if time_col in s.index:
            return str(s[date_col])+' '+str(s[time_col])
        else:
            return str(s[date_col])+' 00:00:00'
    return _fix

##df.apply(fixdatetime('occur'), axis=1)[:10]