tblfaker是一个python库,用于生成伪表格数据。
tblfaker的Python项目详细描述
tblfaker
Usage
Basic Usage
随机生成表格数据
Sample Code: | ^{pr 1}$ |
---|---|
Output: | ^{pr 2}$ |
复制相同的表格数据
通过将相同的seed值传递给TableFaker构造函数,可以复制假表格数据。
Sample Code: | ^{pr 3}$ |
---|---|
Output: | ^{pr 4}$ |
Set locale for fake data
Sample Code: | ^{pr 5}$ |
---|---|
Output: | ^{pr 6}$ |
Generate data in other data formats
以dict格式生成数据
Sample Code: | ^{pr 7}$ |
---|---|
Output: | ^{pr 8}$ |
在pandas.dataframe中生成数据
Sample Code: | ^{pr 9}$ |
---|---|
Output: | ^{pr 10}$ |
Installation
pip install tblfaker