pandas-plots 0.11.2__tar.gz → 0.11.4__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.1
2
2
  Name: pandas-plots
3
- Version: 0.11.2
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
@@ -48,7 +48,6 @@ tbl.show_num_df(
48
48
  - 🌟`show_num_df()` displays a table as styled version with additional information
49
49
  - `describe_df()` an alternative version of pandas `describe()` function
50
50
  - `pivot_df()` gets a pivot table of a 3 column dataframe
51
- - >_⚠️ `pivot_df()` is depricated and wont get further updates. Its features are well covered in standard `pd.pivot_table()`_
52
51
 
53
52
  - `pls` for plotly visualizations
54
53
  - `plot_box()` auto annotated boxplot w/ violin option
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = pandas-plots
3
- version = 0.11.2
3
+ version = 0.11.4
4
4
  author = smeisegeier
5
5
  author_email = dexterDSDo@googlemail.com
6
6
  description = A collection of helper for table handling and vizualization
@@ -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))
@@ -226,8 +226,9 @@ def pivot_df(
226
226
  kpi_shape: Literal["squad", "circle"] = "squad",
227
227
  ) -> pd.DataFrame:
228
228
  """
229
- DEPR: This function is deprecated and will be removed in the future.
230
- A function to pivot a DataFrame based on specified parameters and return the result as a new DataFrame.
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.2
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
File without changes