Random Pandas
A Python package for generating random pandas DataFrame objects and other random functionalities, useful for machine learning benchmarking and testing.
Features
- Generate DataFrames with random numbers of rows and columns.
- Columns can be of various data types (integer, float, boolean, string, datetime).
- Numeric columns can follow different random distributions (uniform, normal) with underlying patterns.
- Introduce controlled randomness suitable for benchmarking machine learning algorithms.
Installation
pip install random-pandas
Usage
from random_pandas import generate_random_dataframe
# Generate a random DataFrame
df = generate_random_dataframe()
print(df.head())
# Generate a random DataFrame with specific number of rows
df_rows = generate_random_dataframe(n_rows=100)
print(df_rows.info())
# Generate a random DataFrame with specific number of columns
df_cols = generate_random_dataframe(n_cols=5)
print(df_cols.info())
Contributing
Contributions are welcome! Please open an issue or submit a pull request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
random_pandas-0.0.3.tar.gz
(6.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file random_pandas-0.0.3.tar.gz.
File metadata
- Download URL: random_pandas-0.0.3.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.1.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cbc9775fe624268ce293953fb285b7f716d3240900db16d0a95a611a9221261c
|
|
| MD5 |
bcdd616f7330b86c9ea5fe763c660d60
|
|
| BLAKE2b-256 |
667c1909f4eb94b715f96d3780535efc8bbae3c7e2b4ffd9c49911be5ba150db
|
File details
Details for the file random_pandas-0.0.3-py3-none-any.whl.
File metadata
- Download URL: random_pandas-0.0.3-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.1.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a84d4b83ef39f5b869fb1ecdedadcc3a1377031e6e8576b97e2a630585d16b15
|
|
| MD5 |
e57eccb187233c9bf58e310d2809b112
|
|
| BLAKE2b-256 |
86745abb27ac30edf32b9eb63b84ec74fbcd53a9a9dea2e0b266a418f566c6e1
|