otp.Source.count (jupyter)#
- Source.count(**kwargs)#
Returns the number of ticks in the query.
Adds an aggregation that calculate total ticks count, and executes a query. Result is a single value – number of ticks. Possible application is the Jupyter when a developer wants to check data presences for example.
Examples
>>> data = otp.Ticks(X=[1, 2, 3]) >>> data.count() 3
>>> data = otp.Empty() >>> data.count() 0