pandas-plots 0.11.2__py3-none-any.whl → 0.11.4__py3-none-any.whl
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.
- pandas_plots/hlp.py +3 -1
- pandas_plots/tbl.py +3 -2
- {pandas_plots-0.11.2.dist-info → pandas_plots-0.11.4.dist-info}/METADATA +1 -2
- pandas_plots-0.11.4.dist-info/RECORD +9 -0
- {pandas_plots-0.11.2.dist-info → pandas_plots-0.11.4.dist-info}/WHEEL +1 -1
- pandas_plots-0.11.2.dist-info/RECORD +0 -9
- {pandas_plots-0.11.2.dist-info → pandas_plots-0.11.4.dist-info}/LICENSE +0 -0
- {pandas_plots-0.11.2.dist-info → pandas_plots-0.11.4.dist-info}/top_level.txt +0 -0
pandas_plots/hlp.py
CHANGED
@@ -2,6 +2,7 @@ import pandas as pd
|
|
2
2
|
import numpy as np
|
3
3
|
import scipy.stats
|
4
4
|
import importlib.metadata as md
|
5
|
+
from platform import python_version
|
5
6
|
|
6
7
|
from io import BytesIO
|
7
8
|
from matplotlib import pyplot as plt
|
@@ -276,10 +277,11 @@ def show_package_version(packages: list[str] = ["pandas","numpy","duckdb","panda
|
|
276
277
|
None
|
277
278
|
"""
|
278
279
|
items = []
|
280
|
+
items.append(f"🐍 {python_version()}")
|
279
281
|
for item in packages:
|
280
282
|
try:
|
281
283
|
version = md.version(item)
|
282
284
|
items.append(f"📦 {item}: {version}")
|
283
285
|
except md.PackageNotFoundError:
|
284
286
|
items.append(f"❌ {item}: Package not found")
|
285
|
-
print(sep.join(items))
|
287
|
+
print(sep.join(items))
|
pandas_plots/tbl.py
CHANGED
@@ -226,8 +226,9 @@ def pivot_df(
|
|
226
226
|
kpi_shape: Literal["squad", "circle"] = "squad",
|
227
227
|
) -> pd.DataFrame:
|
228
228
|
"""
|
229
|
-
|
230
|
-
|
229
|
+
A function to pivot a DataFrame based on specified parameters hand over to the *show_num_df* function.
|
230
|
+
It does not provide much added value since the built-in pivot_table function does the same thing.
|
231
|
+
However, it can be useful in certain situations (applying top_n_index and top_n_columns).
|
231
232
|
|
232
233
|
Args:
|
233
234
|
df (pd.DataFrame): The input DataFrame to be pivoted.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: pandas-plots
|
3
|
-
Version: 0.11.
|
3
|
+
Version: 0.11.4
|
4
4
|
Summary: A collection of helper for table handling and vizualization
|
5
5
|
Home-page: https://github.com/smeisegeier/pandas-plots
|
6
6
|
Author: smeisegeier
|
@@ -78,7 +78,6 @@ tbl.show_num_df(
|
|
78
78
|
- 🌟`show_num_df()` displays a table as styled version with additional information
|
79
79
|
- `describe_df()` an alternative version of pandas `describe()` function
|
80
80
|
- `pivot_df()` gets a pivot table of a 3 column dataframe
|
81
|
-
- >_⚠️ `pivot_df()` is depricated and wont get further updates. Its features are well covered in standard `pd.pivot_table()`_
|
82
81
|
|
83
82
|
- `pls` for plotly visualizations
|
84
83
|
- `plot_box()` auto annotated boxplot w/ violin option
|
@@ -0,0 +1,9 @@
|
|
1
|
+
pandas_plots/hlp.py,sha256=Fq6582i4tgKP8H-Ljp6MQLZkEdsUH935oOqkAxwswsA,10149
|
2
|
+
pandas_plots/pls.py,sha256=BzZge7TnECjCs47MZ7P63_y2WU23P9sLaMl7SKB5h1Q,35043
|
3
|
+
pandas_plots/tbl.py,sha256=7Ei-iD5ckhayYh7MFy4LFnta2mlnoPUkDfmVJjMEC8M,23482
|
4
|
+
pandas_plots/ven.py,sha256=2x3ACo2vSfO3q6fv-UdDQ0h1SJyt8WChBGgE5SDCdCk,11673
|
5
|
+
pandas_plots-0.11.4.dist-info/LICENSE,sha256=6KQ5KVAAhRaB-JJKpX4cefKvRZRgI7GUPc92_2d31XY,1051
|
6
|
+
pandas_plots-0.11.4.dist-info/METADATA,sha256=pJJ86NfZmICZxyLt_KdwITYSRKDsAynn5tMPWuQFB-M,6597
|
7
|
+
pandas_plots-0.11.4.dist-info/WHEEL,sha256=y4mX-SOX4fYIkonsAGA5N0Oy-8_gI4FXw5HNI1xqvWg,91
|
8
|
+
pandas_plots-0.11.4.dist-info/top_level.txt,sha256=XnaNuIHBqMmCeh_U7nKOYTwFue_SIA0wxuDgdPmnnSk,13
|
9
|
+
pandas_plots-0.11.4.dist-info/RECORD,,
|
@@ -1,9 +0,0 @@
|
|
1
|
-
pandas_plots/hlp.py,sha256=polax8sI3z4fKXzIjmjIvDmgnIs3xpBLf4__HPdW9CM,10069
|
2
|
-
pandas_plots/pls.py,sha256=BzZge7TnECjCs47MZ7P63_y2WU23P9sLaMl7SKB5h1Q,35043
|
3
|
-
pandas_plots/tbl.py,sha256=IhDjn-ZD63af6R9WXLSaVGRXA35YM8BDj3OR_SIjG2M,23360
|
4
|
-
pandas_plots/ven.py,sha256=2x3ACo2vSfO3q6fv-UdDQ0h1SJyt8WChBGgE5SDCdCk,11673
|
5
|
-
pandas_plots-0.11.2.dist-info/LICENSE,sha256=6KQ5KVAAhRaB-JJKpX4cefKvRZRgI7GUPc92_2d31XY,1051
|
6
|
-
pandas_plots-0.11.2.dist-info/METADATA,sha256=3IbNUQHUdcU7zuTbqfgy5jXkpH3FjXzE4kT3o7kchJE,6731
|
7
|
-
pandas_plots-0.11.2.dist-info/WHEEL,sha256=cpQTJ5IWu9CdaPViMhC9YzF8gZuS5-vlfoFihTBC86A,91
|
8
|
-
pandas_plots-0.11.2.dist-info/top_level.txt,sha256=XnaNuIHBqMmCeh_U7nKOYTwFue_SIA0wxuDgdPmnnSk,13
|
9
|
-
pandas_plots-0.11.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|