gooddata-pandas 1.49.1.dev2__tar.gz → 1.50.1.dev1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of gooddata-pandas might be problematic. Click here for more details.

Files changed (21) hide show
  1. {gooddata_pandas-1.49.1.dev2/gooddata_pandas.egg-info → gooddata_pandas-1.50.1.dev1}/PKG-INFO +3 -3
  2. {gooddata_pandas-1.49.1.dev2 → gooddata_pandas-1.50.1.dev1}/gooddata_pandas/result_convertor.py +14 -4
  3. {gooddata_pandas-1.49.1.dev2 → gooddata_pandas-1.50.1.dev1/gooddata_pandas.egg-info}/PKG-INFO +3 -3
  4. gooddata_pandas-1.50.1.dev1/gooddata_pandas.egg-info/requires.txt +2 -0
  5. {gooddata_pandas-1.49.1.dev2 → gooddata_pandas-1.50.1.dev1}/setup.py +3 -3
  6. gooddata_pandas-1.49.1.dev2/gooddata_pandas.egg-info/requires.txt +0 -2
  7. {gooddata_pandas-1.49.1.dev2 → gooddata_pandas-1.50.1.dev1}/LICENSE.txt +0 -0
  8. {gooddata_pandas-1.49.1.dev2 → gooddata_pandas-1.50.1.dev1}/MANIFEST.in +0 -0
  9. {gooddata_pandas-1.49.1.dev2 → gooddata_pandas-1.50.1.dev1}/README.md +0 -0
  10. {gooddata_pandas-1.49.1.dev2 → gooddata_pandas-1.50.1.dev1}/gooddata_pandas/__init__.py +0 -0
  11. {gooddata_pandas-1.49.1.dev2 → gooddata_pandas-1.50.1.dev1}/gooddata_pandas/_version.py +0 -0
  12. {gooddata_pandas-1.49.1.dev2 → gooddata_pandas-1.50.1.dev1}/gooddata_pandas/data_access.py +0 -0
  13. {gooddata_pandas-1.49.1.dev2 → gooddata_pandas-1.50.1.dev1}/gooddata_pandas/dataframe.py +0 -0
  14. {gooddata_pandas-1.49.1.dev2 → gooddata_pandas-1.50.1.dev1}/gooddata_pandas/good_pandas.py +0 -0
  15. {gooddata_pandas-1.49.1.dev2 → gooddata_pandas-1.50.1.dev1}/gooddata_pandas/py.typed +0 -0
  16. {gooddata_pandas-1.49.1.dev2 → gooddata_pandas-1.50.1.dev1}/gooddata_pandas/series.py +0 -0
  17. {gooddata_pandas-1.49.1.dev2 → gooddata_pandas-1.50.1.dev1}/gooddata_pandas/utils.py +0 -0
  18. {gooddata_pandas-1.49.1.dev2 → gooddata_pandas-1.50.1.dev1}/gooddata_pandas.egg-info/SOURCES.txt +0 -0
  19. {gooddata_pandas-1.49.1.dev2 → gooddata_pandas-1.50.1.dev1}/gooddata_pandas.egg-info/dependency_links.txt +0 -0
  20. {gooddata_pandas-1.49.1.dev2 → gooddata_pandas-1.50.1.dev1}/gooddata_pandas.egg-info/top_level.txt +0 -0
  21. {gooddata_pandas-1.49.1.dev2 → gooddata_pandas-1.50.1.dev1}/setup.cfg +0 -0
@@ -1,11 +1,11 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gooddata-pandas
3
- Version: 1.49.1.dev2
3
+ Version: 1.50.1.dev1
4
4
  Summary: GoodData Cloud to pandas
5
5
  Author: GoodData
6
6
  Author-email: support@gooddata.com
7
7
  License: MIT
8
- Project-URL: Documentation, https://gooddata-pandas.readthedocs.io/en/v1.49.1.dev2
8
+ Project-URL: Documentation, https://gooddata-pandas.readthedocs.io/en/v1.50.1.dev1
9
9
  Project-URL: Source, https://github.com/gooddata/gooddata-python-sdk
10
10
  Keywords: gooddata,pandas,series,data,frame,data_frame,analytics,headless,business,intelligence,headless-bi,cloud,native,semantic,layer,sql,metrics
11
11
  Classifier: Development Status :: 5 - Production/Stable
@@ -23,7 +23,7 @@ Classifier: Typing :: Typed
23
23
  Requires-Python: >=3.9.0
24
24
  Description-Content-Type: text/markdown
25
25
  License-File: LICENSE.txt
26
- Requires-Dist: gooddata-sdk~=1.49.1.dev2
26
+ Requires-Dist: gooddata-sdk~=1.50.1.dev1
27
27
  Requires-Dist: pandas<3.0.0,>=2.0.0
28
28
  Dynamic: author
29
29
  Dynamic: author-email
@@ -437,11 +437,13 @@ class DataFrameMetadata:
437
437
  | AVG | 150
438
438
  SUM | | 450
439
439
 
440
+ column_totals_indexes: Similar to row_totals_indexes but for column headers.
440
441
  execution_response: An instance of BareExecutionResponse representing the
441
442
  execution response.
442
443
  """
443
444
 
444
445
  row_totals_indexes: list[list[int]]
446
+ column_totals_indexes: list[list[int]]
445
447
  execution_response: BareExecutionResponse
446
448
  primary_labels_from_index: dict[int, dict[str, str]]
447
449
  primary_labels_from_columns: dict[int, dict[str, str]]
@@ -460,17 +462,25 @@ class DataFrameMetadata:
460
462
  A tuple containing data headers. execution_response (BareExecutionResponse): An ExecutionResponse object.
461
463
 
462
464
  Returns: DataFrameMetadata: An initialized DataFrameMetadata object."""
463
- row_totals_indexes = [
464
- [idx for idx, hdr in enumerate(dim) if hdr is not None and hdr.get("totalHeader") is not None]
465
- for dim in headers[0]
466
- ]
465
+ row_totals_indexes = cls._get_totals_indexes(headers[0])
466
+ column_totals_indexes = cls._get_totals_indexes(headers[1])
467
467
  return cls(
468
468
  row_totals_indexes=row_totals_indexes,
469
+ column_totals_indexes=column_totals_indexes,
469
470
  execution_response=execution_response,
470
471
  primary_labels_from_index=primary_labels_from_index,
471
472
  primary_labels_from_columns=primary_labels_from_columns,
472
473
  )
473
474
 
475
+ @staticmethod
476
+ def _get_totals_indexes(headers: Optional[Any]) -> list[list[int]]:
477
+ if headers is None:
478
+ return []
479
+ return [
480
+ [idx for idx, hdr in enumerate(dim) if hdr is not None and hdr.get("totalHeader") is not None]
481
+ for dim in headers
482
+ ]
483
+
474
484
 
475
485
  def _read_complete_execution_result(
476
486
  execution_response: BareExecutionResponse,
@@ -1,11 +1,11 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gooddata-pandas
3
- Version: 1.49.1.dev2
3
+ Version: 1.50.1.dev1
4
4
  Summary: GoodData Cloud to pandas
5
5
  Author: GoodData
6
6
  Author-email: support@gooddata.com
7
7
  License: MIT
8
- Project-URL: Documentation, https://gooddata-pandas.readthedocs.io/en/v1.49.1.dev2
8
+ Project-URL: Documentation, https://gooddata-pandas.readthedocs.io/en/v1.50.1.dev1
9
9
  Project-URL: Source, https://github.com/gooddata/gooddata-python-sdk
10
10
  Keywords: gooddata,pandas,series,data,frame,data_frame,analytics,headless,business,intelligence,headless-bi,cloud,native,semantic,layer,sql,metrics
11
11
  Classifier: Development Status :: 5 - Production/Stable
@@ -23,7 +23,7 @@ Classifier: Typing :: Typed
23
23
  Requires-Python: >=3.9.0
24
24
  Description-Content-Type: text/markdown
25
25
  License-File: LICENSE.txt
26
- Requires-Dist: gooddata-sdk~=1.49.1.dev2
26
+ Requires-Dist: gooddata-sdk~=1.50.1.dev1
27
27
  Requires-Dist: pandas<3.0.0,>=2.0.0
28
28
  Dynamic: author
29
29
  Dynamic: author-email
@@ -0,0 +1,2 @@
1
+ gooddata-sdk~=1.50.1.dev1
2
+ pandas<3.0.0,>=2.0.0
@@ -7,7 +7,7 @@ this_directory = Path(__file__).parent
7
7
  long_description = (this_directory / "README.md").read_text(encoding="utf-8")
8
8
 
9
9
  REQUIRES = [
10
- "gooddata-sdk~=1.49.1.dev2",
10
+ "gooddata-sdk~=1.50.1.dev1",
11
11
  "pandas>=2.0.0,<3.0.0",
12
12
  ]
13
13
 
@@ -16,7 +16,7 @@ setup(
16
16
  description="GoodData Cloud to pandas",
17
17
  long_description=long_description,
18
18
  long_description_content_type="text/markdown",
19
- version="1.49.1.dev2",
19
+ version="1.50.1.dev1",
20
20
  author="GoodData",
21
21
  author_email="support@gooddata.com",
22
22
  license="MIT",
@@ -26,7 +26,7 @@ setup(
26
26
  packages=find_packages(exclude=["tests*"]),
27
27
  python_requires=">=3.9.0",
28
28
  project_urls={
29
- "Documentation": "https://gooddata-pandas.readthedocs.io/en/v1.49.1.dev2",
29
+ "Documentation": "https://gooddata-pandas.readthedocs.io/en/v1.50.1.dev1",
30
30
  "Source": "https://github.com/gooddata/gooddata-python-sdk",
31
31
  },
32
32
  classifiers=[
@@ -1,2 +0,0 @@
1
- gooddata-sdk~=1.49.1.dev2
2
- pandas<3.0.0,>=2.0.0