pandas-plots 0.12.8__tar.gz → 0.12.9__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: pandas-plots
3
- Version: 0.12.8
3
+ Version: 0.12.9
4
4
  Summary: A collection of helper for table handling and visualization
5
5
  Home-page: https://github.com/smeisegeier/pandas-plots
6
6
  Author: smeisegeier
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = pandas-plots
3
- version = 0.12.8
3
+ version = 0.12.9
4
4
  author = smeisegeier
5
5
  author_email = dexterDSDo@googlemail.com
6
6
  description = A collection of helper for table handling and visualization
@@ -1,4 +1,7 @@
1
1
  from pathlib import Path
2
+ import warnings
3
+
4
+ warnings.filterwarnings("ignore")
2
5
 
3
6
  import os
4
7
  from typing import Optional, Literal
@@ -417,10 +420,11 @@ def plot_stacked_bars(
417
420
  # # categories=sort_order,
418
421
  # ordered=True,
419
422
  # )
423
+
420
424
  df = (
421
- df.sort_values(by="index", ascending=False)
425
+ df.sort_values(by=["col","index"], ascending=[True, False])
422
426
  if orientation == "h"
423
- else df.sort_values(by="index", ascending=True)
427
+ else df.sort_values(by=["index","col"], ascending=[True, True])
424
428
  )
425
429
 
426
430
  # display(df)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: pandas-plots
3
- Version: 0.12.8
3
+ Version: 0.12.9
4
4
  Summary: A collection of helper for table handling and visualization
5
5
  Home-page: https://github.com/smeisegeier/pandas-plots
6
6
  Author: smeisegeier
File without changes
File without changes