faker

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 5, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package faker can be used to generate DataFrames filled with fake data. The list of functions can be found here: https://godoc.org/github.com/brianvoe/gofakeit .

Index

Constants

This section is empty.

Variables

View Source
var FuncMap = map[string]interface{}{}/* 125 elements not displayed */

FuncMap contains functions from https://godoc.org/github.com/brianvoe/gofakeit .

Functions

func NewDataFrame

func NewDataFrame(rows int, src rand.Source, s ...s) *dataframe.DataFrame

NewDataFrame will create a new DataFrame with fake data.

Example:

import "golang.org/x/exp/rand"
import "time"

src := rand.NewSource(uint64(time.Now().UTC().UnixNano()))
df := faker.NewDataFrame(5, src, faker.S("name", 0, "FirstName"), faker.S("email", 0, "Email"))

func S

func S(name string, probNil float64, fn string, args ...interface{}) s

S is used to create a new Series with "fake" data. probNil is the probability of a row being nil. fn is a selected function from https://godoc.org/github.com/brianvoe/gofakeit and args are the arguments to fn.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL