pandas-plots 0.12.28__py3-none-any.whl → 0.12.30__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/tbl.py +8 -0
- {pandas_plots-0.12.28.dist-info → pandas_plots-0.12.30.dist-info}/METADATA +1 -1
- pandas_plots-0.12.30.dist-info/RECORD +10 -0
- pandas_plots-0.12.28.dist-info/RECORD +0 -10
- {pandas_plots-0.12.28.dist-info → pandas_plots-0.12.30.dist-info}/WHEEL +0 -0
- {pandas_plots-0.12.28.dist-info → pandas_plots-0.12.30.dist-info}/licenses/LICENSE +0 -0
- {pandas_plots-0.12.28.dist-info → pandas_plots-0.12.30.dist-info}/pii.py +0 -0
- {pandas_plots-0.12.28.dist-info → pandas_plots-0.12.30.dist-info}/top_level.txt +0 -0
pandas_plots/tbl.py
CHANGED
@@ -172,6 +172,9 @@ def describe_df(
|
|
172
172
|
# * fix bug(?) in plotly/choreographer - datetime columns are not plotted, set these to str
|
173
173
|
datetime_cols = df.select_dtypes(include=['datetime64']).columns
|
174
174
|
df[datetime_cols] = df[datetime_cols].astype(str)
|
175
|
+
|
176
|
+
# ! Drop completely empty columns (Series)
|
177
|
+
df = df.dropna(axis=1, how='all')
|
175
178
|
|
176
179
|
# * reduce column names len if selected
|
177
180
|
if top_n_chars_in_columns > 0:
|
@@ -769,6 +772,11 @@ def print_summary(df: pd.DataFrame | pd.Series, show: bool = True, name: str=" "
|
|
769
772
|
|
770
773
|
# * drop NA to keep scipy sane
|
771
774
|
ser.dropna(inplace=True)
|
775
|
+
|
776
|
+
# * on empty series: return
|
777
|
+
if ser.empty:
|
778
|
+
print(f"{name} -> empty")
|
779
|
+
return
|
772
780
|
|
773
781
|
# Using the iqr function, we still calculate the bounds manually
|
774
782
|
q1 = round(stats.scoreatpercentile(ser, 25), precision)
|
@@ -0,0 +1,10 @@
|
|
1
|
+
pandas_plots/hlp.py,sha256=z8rrVNbH9qMohdXPT-FksP-VkTOjI0bGFj47Sw5p3aY,21141
|
2
|
+
pandas_plots/pls.py,sha256=M-UrYcgQHWUeiuqjrq2TNJHca5cHfvS5pEp66Qu2Nrs,48886
|
3
|
+
pandas_plots/tbl.py,sha256=R2E6FLhxNpUtS88Zf88Eh9i8dSKgmJtmFimFvOt0foQ,32780
|
4
|
+
pandas_plots/ven.py,sha256=2x3ACo2vSfO3q6fv-UdDQ0h1SJyt8WChBGgE5SDCdCk,11673
|
5
|
+
pandas_plots-0.12.30.dist-info/licenses/LICENSE,sha256=ltLbQWUCs-GBQlTPXbt5nHNBE9U5LzjjoS1Y8hHETM4,1051
|
6
|
+
pandas_plots-0.12.30.dist-info/METADATA,sha256=vI58okMF7hvV_OuE7dRDQxKyP_W7umWL6_PntoMK2L0,7431
|
7
|
+
pandas_plots-0.12.30.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
8
|
+
pandas_plots-0.12.30.dist-info/pii.py,sha256=2WKE-W9s285jPdsTqCgt1uxuW4lj1PYCVOYB2fYDNwQ,2195
|
9
|
+
pandas_plots-0.12.30.dist-info/top_level.txt,sha256=XnaNuIHBqMmCeh_U7nKOYTwFue_SIA0wxuDgdPmnnSk,13
|
10
|
+
pandas_plots-0.12.30.dist-info/RECORD,,
|
@@ -1,10 +0,0 @@
|
|
1
|
-
pandas_plots/hlp.py,sha256=z8rrVNbH9qMohdXPT-FksP-VkTOjI0bGFj47Sw5p3aY,21141
|
2
|
-
pandas_plots/pls.py,sha256=M-UrYcgQHWUeiuqjrq2TNJHca5cHfvS5pEp66Qu2Nrs,48886
|
3
|
-
pandas_plots/tbl.py,sha256=SHUhERnjjJMvQ2Cokh1lU5VU6jccjQSc0S9K3Rx3DSY,32554
|
4
|
-
pandas_plots/ven.py,sha256=2x3ACo2vSfO3q6fv-UdDQ0h1SJyt8WChBGgE5SDCdCk,11673
|
5
|
-
pandas_plots-0.12.28.dist-info/licenses/LICENSE,sha256=ltLbQWUCs-GBQlTPXbt5nHNBE9U5LzjjoS1Y8hHETM4,1051
|
6
|
-
pandas_plots-0.12.28.dist-info/METADATA,sha256=A6R9BSf-vnwbAsNZxiMFfWRXeHMMagOCoVVkCW-EecI,7431
|
7
|
-
pandas_plots-0.12.28.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
8
|
-
pandas_plots-0.12.28.dist-info/pii.py,sha256=2WKE-W9s285jPdsTqCgt1uxuW4lj1PYCVOYB2fYDNwQ,2195
|
9
|
-
pandas_plots-0.12.28.dist-info/top_level.txt,sha256=XnaNuIHBqMmCeh_U7nKOYTwFue_SIA0wxuDgdPmnnSk,13
|
10
|
-
pandas_plots-0.12.28.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|