def timeSeries(displayObject):
    if (len(displayObject.getKeyFields()) == 1):
        pdf = displayObject.getWorkingPandasDataFrame()
        field = displayObject.getKeyFields()[0]
        dtype = (pdf[field].dtype.type if (field in pdf) else None)
        existingValue = displayObject.options.get('timeseries', 'false')
        if ((dtype is not None) and ((dtype is not numpy.datetime64) or (existingValue == 'true'))):
            return {'name': 'timeseries', 'description': 'Time Series', 'metadata': {'type': 'checkbox', 'default': 'false'}}
def timeSeries(displayObject):
    if (len(displayObject.getKeyFields()) == 1):
        pdf = displayObject.getWorkingPandasDataFrame()
        field = displayObject.getKeyFields()[0]
        dtype = (pdf[field].dtype.type if (field in pdf) else None)
        existingValue = displayObject.options.get('timeseries', 'false')
        if ((dtype is not None) and ((dtype is not numpy.datetime64) or (existingValue == 'true'))):
            return {'name': 'timeseries', 'description': 'Time Series', 'metadata': {'type': 'checkbox', 'default': 'false'}}