def _parse_date_columns(data_frame, parse_dates):
 if ((parse_dates is True) or (parse_dates is None) or (parse_dates is False)):
  parse_dates = []
 if (not hasattr(parse_dates, '__iter__')):
  parse_dates = [parse_dates]
 for col_name in parse_dates:
  df_col = data_frame[col_name]
  try:
   fmt = parse_dates[col_name]
  except TypeError:
   fmt = None
  data_frame[col_name] = _handle_date_column(df_col, format=fmt)
 for (col_name, df_col) in data_frame.iteritems():
  if is_datetime64tz_dtype(df_col):
   data_frame[col_name] = _handle_date_column(df_col)
 return data_frame

def _parse_date_columns ( data_frame , parse_dates ) : if ( ( parse_dates is True ) or ( parse_dates is None ) or ( parse_dates is False ) ) : parse_dates = [ ] if ( not hasattr ( parse_dates , '__iter__' ) ) : parse_dates = [ parse_dates ] for col_name in parse_dates : df_col = data_frame [ col_name ] try : fmt = parse_dates [ col_name ] except TypeError : fmt = None data_frame [ col_name ] = _handle_date_column ( df_col , format = fmt ) for ( col_name , df_col ) in data_frame . iteritems ( ) : if is_datetime64tz_dtype ( df_col ) : data_frame [ col_name ] = _handle_date_column ( df_col ) return data_frame
force non-datetime columns to be read as such .