Skip to content

Commit

Permalink
Update profiler.py
Browse files Browse the repository at this point in the history
  • Loading branch information
gillus authored Oct 24, 2022
1 parent 60405eb commit 3564025
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion structured_data_profiling/profiler/profiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def __init__(
if n_samples is None:
n_samples = int(0.1 * df.shape[0])

samples = np.random.choice(df.shape[0], min(n_samples, df.shape[0]))
samples = np.random.choice(df.shape[0], min(n_samples, df.shape[0]), replace=False)
self.n_samples = n_samples
self.samples = samples

Expand Down

0 comments on commit 3564025

Please sign in to comment.