pandas-plots 0.11.17__tar.gz → 0.11.19__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.
- {pandas_plots-0.11.17/src/pandas_plots.egg-info → pandas_plots-0.11.19}/PKG-INFO +1 -1
- {pandas_plots-0.11.17 → pandas_plots-0.11.19}/setup.cfg +1 -1
- {pandas_plots-0.11.17 → pandas_plots-0.11.19}/src/pandas_plots/pls.py +7 -1
- {pandas_plots-0.11.17 → pandas_plots-0.11.19}/src/pandas_plots/tbl.py +4 -0
- {pandas_plots-0.11.17 → pandas_plots-0.11.19/src/pandas_plots.egg-info}/PKG-INFO +1 -1
- {pandas_plots-0.11.17 → pandas_plots-0.11.19}/LICENSE +0 -0
- {pandas_plots-0.11.17 → pandas_plots-0.11.19}/README.md +0 -0
- {pandas_plots-0.11.17 → pandas_plots-0.11.19}/pyproject.toml +0 -0
- {pandas_plots-0.11.17 → pandas_plots-0.11.19}/src/pandas_plots/hlp.py +0 -0
- {pandas_plots-0.11.17 → pandas_plots-0.11.19}/src/pandas_plots/pii.py +0 -0
- {pandas_plots-0.11.17 → pandas_plots-0.11.19}/src/pandas_plots/ven.py +0 -0
- {pandas_plots-0.11.17 → pandas_plots-0.11.19}/src/pandas_plots.egg-info/SOURCES.txt +0 -0
- {pandas_plots-0.11.17 → pandas_plots-0.11.19}/src/pandas_plots.egg-info/dependency_links.txt +0 -0
- {pandas_plots-0.11.17 → pandas_plots-0.11.19}/src/pandas_plots.egg-info/requires.txt +0 -0
- {pandas_plots-0.11.17 → pandas_plots-0.11.19}/src/pandas_plots.egg-info/top_level.txt +0 -0
@@ -786,7 +786,13 @@ def plot_box(
|
|
786
786
|
ser = df_to_series(ser)
|
787
787
|
if ser is None:
|
788
788
|
return
|
789
|
+
|
790
|
+
# * drop na to keep scipy sane
|
791
|
+
n_ = len(ser)
|
792
|
+
ser.dropna(inplace=True)
|
793
|
+
n = len(ser)
|
789
794
|
|
795
|
+
# hack
|
790
796
|
median = ser.median()
|
791
797
|
mean = ser.mean()
|
792
798
|
q25 = ser.quantile(0.25)
|
@@ -811,7 +817,7 @@ def plot_box(
|
|
811
817
|
"width": width,
|
812
818
|
"points": points,
|
813
819
|
# 'box':True,
|
814
|
-
"title": f"{caption}[{ser.name}], n = {
|
820
|
+
"title": f"{caption}[{ser.name}], n = {n_:_}({n:_})" if not title else title,
|
815
821
|
}
|
816
822
|
|
817
823
|
fig = px.violin(**{**dict, "box": True}) if violin else px.box(**dict)
|
@@ -142,6 +142,10 @@ def describe_df(
|
|
142
142
|
|
143
143
|
# ! *** PLOTS ***
|
144
144
|
if use_plot:
|
145
|
+
# * fix bug(?) in plotly/choreographer - datetime columns are not plotted, set these to str
|
146
|
+
datetime_cols = df.select_dtypes(include=['datetime64']).columns
|
147
|
+
df[datetime_cols] = df[datetime_cols].astype(str)
|
148
|
+
|
145
149
|
# * reduce column names len if selected
|
146
150
|
if top_n_chars_in_columns > 0:
|
147
151
|
# * minumum 10 chars, or display is cluttered
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{pandas_plots-0.11.17 → pandas_plots-0.11.19}/src/pandas_plots.egg-info/dependency_links.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|