sampledata.float() function
sampledata.float
returns a sample data set with float values.
import "sampledata"
sampledata.float(includeNull: false)
Parameters
includeNull
Include null values in the returned dataset.
Default is false
.
Examples
Return sample data with float values
Function
import "sampledata"
sampledata.float()
Output tables
_time | tag | _value |
---|---|---|
2021-01-01T00:00:00Z | t1 | -2.18 |
2021-01-01T00:00:10Z | t1 | 10.92 |
2021-01-01T00:00:20Z | t1 | 7.35 |
2021-01-01T00:00:30Z | t1 | 17.53 |
2021-01-01T00:00:40Z | t1 | 15.23 |
2021-01-01T00:00:50Z | t1 | 4.43 |
_time | tag | _value |
---|---|---|
2021-01-01T00:00:00Z | t2 | 19.85 |
2021-01-01T00:00:10Z | t2 | 4.97 |
2021-01-01T00:00:20Z | t2 | -3.75 |
2021-01-01T00:00:30Z | t2 | 19.77 |
2021-01-01T00:00:40Z | t2 | 13.86 |
2021-01-01T00:00:50Z | t2 | 1.86 |
Return float sample data with null values
Function
import "sampledata"
sampledata.float(includeNull: true)
Output tables
_time | tag | _value |
---|---|---|
2021-01-01T00:00:00Z | t1 | -2.18 |
2021-01-01T00:00:10Z | t1 | |
2021-01-01T00:00:20Z | t1 | 7.35 |
2021-01-01T00:00:30Z | t1 | |
2021-01-01T00:00:40Z | t1 | |
2021-01-01T00:00:50Z | t1 | 4.43 |
_time | tag | _value |
---|---|---|
2021-01-01T00:00:00Z | t2 | |
2021-01-01T00:00:10Z | t2 | 4.97 |
2021-01-01T00:00:20Z | t2 | -3.75 |
2021-01-01T00:00:30Z | t2 | 19.77 |
2021-01-01T00:00:40Z | t2 | |
2021-01-01T00:00:50Z | t2 | 1.86 |
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for Flux and this documentation. To find support, the following resources are available:
InfluxDB Cloud customers can contact InfluxData Support.