pandas-plots 0.12.13__tar.gz → 0.12.15__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.13
3
+ Version: 0.12.15
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.13
3
+ version = 0.12.15
4
4
  author = smeisegeier
5
5
  author_email = dexterDSDo@googlemail.com
6
6
  description = A collection of helper for table handling and visualization
@@ -291,10 +291,10 @@ def plot_stacked_bars(
291
291
  # # * overkill ^^
292
292
  # df.iloc[:, [0, 1]] = df.iloc[:, [0, 1]].astype(str)
293
293
 
294
- # * but last col must be numeric
295
- if df.iloc[:, -1].dtype.kind not in ("f", "i"):
296
- print("❌ last column must be numeric")
297
- return
294
+ # # * but last col must be numeric
295
+ # if df.iloc[:, -1].dtype.kind not in ("f", "i"):
296
+ # print("❌ last column must be numeric")
297
+ # return
298
298
 
299
299
  df = df.copy() # Copy the input DataFrame to avoid modifying the original
300
300
 
@@ -1433,3 +1433,13 @@ def plot_facet_stacked_bars(
1433
1433
  fig.show(renderer=renderer)
1434
1434
 
1435
1435
  return fig
1436
+
1437
+ # * extend objects to enable chaining
1438
+ pd.DataFrame.plot_bars = plot_bars
1439
+ pd.DataFrame.plot_stacked_bars = plot_stacked_bars
1440
+ pd.DataFrame.plot_facet_stacked_bars = plot_facet_stacked_bars
1441
+ pd.DataFrame.plot_stacked_box = plot_box
1442
+ pd.DataFrame.plot_stacked_boxes = plot_boxes
1443
+ pd.DataFrame.plot_quadrants = plot_quadrants
1444
+ pd.DataFrame.plot_histogram = plot_histogram
1445
+ pd.DataFrame.plot_joint = plot_joint
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: pandas-plots
3
- Version: 0.12.13
3
+ Version: 0.12.15
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