otp.Source.head (jupyter)#
- Source.head(n=5, **kwargs)#
Executes the query and returns first
n
ticks as a pandas dataframe.It is useful in the jupyter case when you want to observe first
n
values.- Parameters
- Return type
Examples
>>> data = otp.Ticks(X=list('abcdefgik')) >>> data.head()[['X']] X 0 a 1 b 2 c 3 d 4 e
See also
otp.run
Source.tail, Source.count