Skip to content

Commit

Permalink
Generate dataframe
Browse files Browse the repository at this point in the history
  • Loading branch information
LouiseDck committed Jul 4, 2024
1 parent 311f896 commit b4d8dfd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions inst/scripts/generate_dataframe.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import pandas as pd
from generate_vector import vector_generators

def generate_dataframe(n_rows, types = None):
if types is None:
types = list(vector_generators.keys())

data = {t: vector_generators[t](n_rows) for t in types}
return pd.DataFrame(data)

0 comments on commit b4d8dfd

Please sign in to comment.