A Python library which provides a seamless solution for converting unstructured data into structured format, making data easier to process, analyze, and store. By organizing nested or inconsistent data into a standardized format, this library simplifies data handling for various applications.
Project description
FlatData Python Library
Overview
The library provides a seamless solution for converting unstructured data into structured format, making data easier to process, analyze, and store. By organizing nested or inconsistent data into a standardized format, this tool simplifies data handling for various applications.
Use Cases
- Data Processing: Clean and structure raw JSON or dictionaries for easier analysis.
- Machine Learning: Prepare datasets for feature extraction and model training.
- API Integration: Structure API responses into consistent formats for frontend or backend use.
- Database Operations: Normalize data for storage in relational or NoSQL databases.
- Scientific Research: Organize experimental or biological data for statistical studies.
- Business Applications: Format data for reports, dashboards, or CRM systems.
How to use it?
Install to library use the following command.
pip install flat-data
Import the library
from flat_data import FlatData
Pass the data that you want to structure and the records which you want to include.
from flat_data import FlatData
input_data = [
{
"team": "Dot Net",
"detail": [
{
"type": "Dot Net Dev",
"members": ["Rohan", "Shriyash"],
"salary": [25000, 35000]
},
{
"type": "Dot Net Test",
"members": ["Shravani", "Komal", "Satyen"],
"salary": [30000, 40000, 50000]
}
]
},
{
"team": "Python",
"detail": [
{
"type": "Python Dev",
"members": ["Anushka", "Pranjal"],
"salary": [22000, 36000]
},
{
"type": "Python Test",
"members": ["Pratham", "Amol", "Manjiri"],
"salary": [52000, 67000, 24000]
}
]
}
]
fd = FlatData(data=input_data, records=['team', 'type', 'members', 'salary'])
flatten_data = fd.get_flat_data()
Recommended sequence for the records list is from top left to bottom right. In the below example, ['team', 'type', 'members', 'salary']
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 flat_data-1.0.1.tar.gz.
File metadata
- Download URL: flat_data-1.0.1.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
84af34360f0b2a90f31f2167f9eed739ab5bbba2e03bb995726c3df5180a5c30
|
|
| MD5 |
51f382d55be203c62398b5fc2aa61b64
|
|
| BLAKE2b-256 |
818a052722e4979a0d6c05d7137d27b54205d9c91c89518a7a640cb6a63b19f0
|
File details
Details for the file flat_data-1.0.1-py3-none-any.whl.
File metadata
- Download URL: flat_data-1.0.1-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2718e64d18d8ac2824e3a62b9b3bcbbb88d44337b9003c43f50d19ddc3c0bbd5
|
|
| MD5 |
d1c1af59fec0a297ed290d5cfa7a6483
|
|
| BLAKE2b-256 |
eddc26e59bcf13467f95324320cbb3edd3ce7f4312a6368f48eca17d77218da6
|