GoodData.CN to pandas
Project description
GoodData Pandas
This package contains a thin layer that utilizes gooddata-sdk and allows you to conveniently create pandas series and data frames from the computations done against semantic model in your GoodData.CN workspace.
See DOCUMENTATION for more details.
Requirements
-
GoodData.CN installation; either running on your cloud infrastructure or the free Community Edition running on your workstation
-
Python 3.7 or newer
Installation
Run the following command to install the gooddata-pandas
package on your system:
pip install gooddata-pandas
Example
Create an indexed and a not-indexed series:
from gooddata_pandas import GoodPandas
# GoodData.CN host in the form of uri eg. "http://localhost:3000"
host = "http://localhost:3000"
# GoodData.CN user token
token = "some_user_token"
# initialize the adapter to work on top of GD.CN host and use the provided authentication token
gp = GoodPandas(host, token)
workspace_id = "demo"
series = gp.series(workspace_id)
# create indexed series
indexed_series = series.indexed(index_by="label/label_id", data_by="fact/measure_id")
# create non-indexed series containing just the values of measure sliced by elements of the label
non_indexed = series.not_indexed(data_by="fact/measure_id", granularity="label/label_id")
Bugs & Requests
Please use the GitHub issue tracker to submit bugs or request features.
Changelog
Consult Github releases for a released versions and list of changes.
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
Hashes for gooddata-pandas-1.3.1.dev4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4a642f187aeef64c1cdef402dc2ad7e34a27ed2e25f0bc8aaa0f29c348d2e0c |
|
MD5 | adcd57f67d0ca082bf4de30044dea0b3 |
|
BLAKE2b-256 | dc92a110786db2e293bbe9e56ff95b7ab450c75f692b3b5d2def570ef7257efe |
Hashes for gooddata_pandas-1.3.1.dev4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d43221d104ca3bfbcd08094f7c5647a2322a949c293e6ef6df49d14e0625aa70 |
|
MD5 | dee635b9f59d73d34435b319932e689e |
|
BLAKE2b-256 | 78911ada014d1d0d443154ef0d761444722cb4de79f20d0f7965f5d14650f2d2 |