semvec/pypi-packages huggingface dataset:
json-flattening 1.0.5
Package to Flatten JSON data to relational Dataframe
License: MIT
Keywords: json flatten

## Json-flattening

Flatten Json to Relational Dataframe

### Instructions

1. **Install**

```
pip install json-flattening
```

2. **Parameters**
```
json_data: Input data to be flattend, should be dict or list of dict
list_split_to_many: If the final node list data should be splitted to one to many relation(i.e to multiple rows)
ignore_parent_key: Parent Keys to be ignored should be string or list
filter_parent_key: Parent Keys only to be considered should be string or list,if none of key specified is in data,will return empty dataframe
```


3. **Flatten json**

``` Python
from json_flattening import json_flatten

data = [{
    "firstName": "Rack",
    "lastName": "Jackon",
    "gender": "man",
    "age": 24,
    "address": {
        "streetAddress": "126",
        "city": "San Jone",
        "state": "CA",
        "postalCode": "394221"
    },
    "phoneNumbers": [
        { "type": "home", "number": "7383627627" }
    ]
},
{
    "firstName": "rock",
    "lastName": "Jackon",
    "gender": "man",
    "age": 24,
    "address": {
        "streetAddress": "126",
        "city": "San Jone",
        "postalCode": "394221"
    },
    "phoneNumbers": [
        { "type": "home", "number": "7383627627" }
    ]
}]

flatten_data = json_flatten(data)

```

| firstName | lastName | gender | age | address_state | address_streetAddress | address_postalCode | address_city | phoneNumbers_type | phoneNumbers_number |
| ---- | ---- | ---- | ---- | ---- | ---- | ---- | ---- | ---- | ---- |  
|Rack|Jackon|man|24|CA|126|394221|San Jone|home|7383627627|
|rock|Jackon|man|24|NaN|126|394221|San Jone|home|7383627627|


4. **With ignore parent Key**
```
flatten_data = json_flatten(data,ignore_parent_key=['phoneNumbers','age'])
```
| firstName | lastName | gender | address_state | address_streetAddress | address_postalCode | address_city |
| ---- | ---- | ---- | ---- | ---- | ---- | ---- |
|Rack|Jackon|man|CA|126|394221|San Jone|
|rock|Jackon|man|NaN|126|394221|San Jone|



Change Log
==============


1.0.0 (12/4/2022)
------------------
- First Release

1.0.1 (12/4/2022)
------------------
- Bug fix for complex nested json
- Bug fix if key have a null value

1.0.2 (12/4/2022)
------------------
- Updated doc string details

1.0.3 (20/6/2022)
------------------
- Bug fix if the parent and child node have same key name

1.0.4 (15/7/2022)
------------------
- Bug fix if the column name is "id" it was skipping it

1.0.5 (18/7/2022)
------------------
- Added Parameter to consider and filter parent keys and ignore rest
SolarWattEnergyManagerAPI 0.5.4
API wrapper for solar watt energy manager
License: MIT
Keywords: IOT,Solar,Local

# Important!
Active development of this package moved to https://pypi.org/project/LocalSolarWatt/

# SolarWattEnergyManagerAPI
A python3 library to access the data of a solar watt energy manager

This library returns the current power data of your solar array via the unofficial local api.

## Installation

```
pip install SolarWattEnergyManagerAPI
```

## Usage
```
from SolarWattEnergyManagerAPI.SolarWatt import EnergyManagerAPI

# create a new api object
api = EnergyManagerAPI()

# set host or ip of energy manager device
api.set_host('hostname or ip')

# optional, change log level
api.set_log_level('WARNING')

# optional, change work units to Wh instead of kWh
from SolarWattEnergyManagerAPI.units import WorkUnit
api.set_unit(WorkUnit.Wh)

# test the connection (returns bool based on success)
result = api.test_connection()

# pull data from the device (retuirn dictionary with power values)
data = api.pull_data()
```
MDM2CKAN 0.0.0
Exportación de datos de MDM hacia CKAN
License: MIT

# MDM2CKAN
Aplicación encargada de exportar los datos de [MDM Manager](https://github.com/SDMXISTATTOOLKIT/META-DATA.MANAGER) a [CKAN](https://ckan.org/).

![indexa](imagenes/indexa-logo.png)
![ckan](imagenes/logo-ckan.svg)