(now=None, **kwargs)
return pd.DataFrame(
        {'a': np.random.random(1)}, index=[now])
Example of querying a single current value
Example of querying a single current value
Example of querying a single current value
def random_datapoint(now=None, **kwargs):
    """Example of querying a single current value"""
    if now is None:
        now = pd.Timestamp.now()
    return pd.DataFrame(
        {'a': np.random.random(1)}, index=[now])
def random_datapoint ( now = None , * * kwargs ) : if now is None : now = pd . Timestamp . now ( ) return pd . DataFrame ( { 'a' : np . random . random ( 1 ) } , index = [ now ] )