Documentation

sampledata.float() function

Flux 0.128.0+

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
_timetag_value
2021-01-01T00:00:00Zt1-2.18
2021-01-01T00:00:10Zt110.92
2021-01-01T00:00:20Zt17.35
2021-01-01T00:00:30Zt117.53
2021-01-01T00:00:40Zt115.23
2021-01-01T00:00:50Zt14.43
_timetag_value
2021-01-01T00:00:00Zt219.85
2021-01-01T00:00:10Zt24.97
2021-01-01T00:00:20Zt2-3.75
2021-01-01T00:00:30Zt219.77
2021-01-01T00:00:40Zt213.86
2021-01-01T00:00:50Zt21.86

Return float sample data with null values

Function
import "sampledata"

sampledata.float(includeNull: true)
Output tables
_timetag_value
2021-01-01T00:00:00Zt1-2.18
2021-01-01T00:00:10Zt1
2021-01-01T00:00:20Zt17.35
2021-01-01T00:00:30Zt1
2021-01-01T00:00:40Zt1
2021-01-01T00:00:50Zt14.43
_timetag_value
2021-01-01T00:00:00Zt2
2021-01-01T00:00:10Zt24.97
2021-01-01T00:00:20Zt2-3.75
2021-01-01T00:00:30Zt219.77
2021-01-01T00:00:40Zt2
2021-01-01T00:00:50Zt21.86

Upgrade to InfluxDB Cloud or InfluxDB 2.0!

InfluxDB Cloud and InfluxDB OSS 2.0 ready for production.