-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'var-toml' into docstrings-class-level
- Loading branch information
Showing
33 changed files
with
974 additions
and
409 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
import polars as pl | ||
|
||
from metasyn import MetaFrame | ||
|
||
# example dataframe from polars website | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Example toml file as input for metasyn | ||
|
||
[general] | ||
dist_providers = ["builtin", "metasyn-disclosure"] | ||
|
||
[general.privacy] | ||
name = "disclosure" | ||
parameters = {n_avg = 11} | ||
|
||
|
||
[[var]] | ||
name = "PassengerId" | ||
distribution = {unique = true} # Notice lower capitalization for .toml files. | ||
|
||
[[var]] | ||
name = "Name" | ||
prop_missing = 0.1 | ||
description = "Name of the unfortunate passenger of the titanic." | ||
distribution = {implements = "core.faker", parameters = {faker_type = "name", locale = "en_US"}} | ||
|
||
[[var]] | ||
name = "Fare" | ||
distribution = {implements = "core.exponential"} | ||
|
||
[[var]] | ||
name = "Age" | ||
distribution = {implements = "core.uniform", parameters = {low = 20, high = 40}} | ||
|
||
|
||
[[var]] | ||
name = "Cabin" | ||
distribution = {implements = "core.regex", parameters = {regex_data = "[A-F][0-9]{2,3}"}} | ||
privacy = {name = "disclosure", parameters = {n_avg = 21}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.