Skip to content

Commit f782a18

Browse files
committed
New version 0.1.901 fixes issues
1 parent c4231f9 commit f782a18

File tree

3 files changed

+17
-10
lines changed

3 files changed

+17
-10
lines changed

autoviz/AutoViz_Holo.py

+13-6
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,12 @@ def AutoViz_Holo(filename, sep=',', depVar='', dfte=None, header=0, verbose=0,
225225
drawobj5 = draw_violinplot_hv(dfin, dep, nums, chart_format, problem_type, mk_dir, verbose)
226226
ls_objects.append(drawobj5)
227227
if len(nums) > 0:
228-
drawobj6 = draw_heatmap_hv(dfin, nums, chart_format, date_vars, dep, problem_type, classes,
228+
#### Adding int vars to nums since pandas has changed the df.corr() to error when cats are included ###
229+
if len(cats) > 0:
230+
nums_in = nums + dfin[cats].select_dtypes(include="number").columns.tolist()
231+
else:
232+
nums_in = nums[:]
233+
drawobj6 = draw_heatmap_hv(dfin, nums_in, chart_format, date_vars, dep, problem_type, classes,
229234
mk_dir, verbose)
230235
ls_objects.append(drawobj6)
231236
if len(date_vars) > 0:
@@ -1035,7 +1040,7 @@ def create_figure(x, y):
10351040
opts['alpha'] = alpha
10361041
opts['tools'] = ['hover']
10371042
opts['toolbar'] = 'above'
1038-
opts['colorbar'] = True
1043+
#opts['colorbar'] = True
10391044
#opts['color'] = next(colors)
10401045
opts['title'] = title='Time Series plots of Numeric vars'
10411046
dft = df.set_index(df[x])
@@ -1115,15 +1120,16 @@ def draw_heatmap_hv(dft, conti, chart_format, datevars=[], dep=None,
11151120
dft_target = dft[conti]
11161121
dft_target[dep] = dft[dep].values
11171122
corre = dft_target.corr()
1123+
corre = corre.round(2)
11181124
if timeseries_flag:
11191125
heatmap = corre.hvplot.heatmap(height=height_size, width=width_size, colorbar=True,
11201126
cmap=cmap_list, rot=70,
1121-
title='Time Series: Heatmap of all Differenced Continuous vars for target = %s' %dep)
1127+
title='Time Series: Heatmap of all Differenced Numeric vars for target = %s' %dep)
11221128
else:
11231129
heatmap = corre.hvplot.heatmap(height=height_size, width=width_size, colorbar=True,
11241130
cmap=cmap_list,
11251131
rot=70,
1126-
title='Heatmap of all Continuous Variables including target');
1132+
title='Heatmap of all Numeric Variables including target');
11271133
hv_plot = heatmap * hv.Labels(heatmap).opts(opts.Labels(text_font_size='7pt'))
11281134
hv_panel = pn.panel(hv_plot)
11291135
if verbose == 2:
@@ -1143,17 +1149,18 @@ def draw_heatmap_hv(dft, conti, chart_format, datevars=[], dep=None,
11431149
dft_target = dft_target[:]
11441150
N = len(conti)
11451151
corre = dft_target.corr()
1152+
corre = corre.round(2)
11461153
if timeseries_flag:
11471154
heatmap = corre.hvplot.heatmap(height=height_size, width=width_size, colorbar=True,
11481155
cmap=cmap_list,
11491156
rot=70,
1150-
title='Time Series Data: Heatmap of Differenced Continuous vars including target').opts(
1157+
title='Time Series Data: Heatmap of Differenced Numeric vars including target').opts(
11511158
opts.HeatMap(tools=['hover'], toolbar='above'))
11521159
else:
11531160
heatmap = corre.hvplot.heatmap(height=height_size, width=width_size, colorbar=True,
11541161
cmap=cmap_list,
11551162
rot=70,
1156-
title='Heatmap of all Continuous Variables including target').opts(
1163+
title='Heatmap of all Numeric Variables including target').opts(
11571164
opts.HeatMap(tools=['hover'], toolbar='above'))
11581165
hv_plot = heatmap * hv.Labels(heatmap).opts(opts.Labels(text_font_size='7pt'))
11591166
hv_panel = pn.panel(hv_plot)

autoviz/__version__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
__author__ = "Ram Seshadri"
66
__description__ = "Automatically Visualize any data set any size with a Single Line of Code"
77
__url__ = "https://github.com/AutoViML/AutoViz.git"
8-
__version__ = "0.1.808"
8+
__version__ = "0.1.901"
99
__holo_version__ = "0.0.4"
1010
__license__ = "Apache License 2.0"
1111
__copyright__ = "2020-21 Google"

setup.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"holoviews<=1.14.9", # Older compatible version
3535
"panel~=0.14.4", ## this is an old versjon of panel
3636
"param==1.13.0", ### something broke in panel without this
37-
"pandas<2.0", ## pandas must be below 2.0 version
37+
"pandas>=2.0", ## pandas must be below 2.0 version
3838
]
3939

4040
# For Python versions >= 3.10 and < 3.11, update the dependency list
@@ -47,7 +47,7 @@
4747
"holoviews>=1.15.3", # Update based on the bug fix relevant to Python 3.10
4848
# Ensure other dependencies are compatible
4949
"panel>=1.4.0", ## this is a new version of panel
50-
"pandas<2.0", ## pandas must be below 2.0 version
50+
"pandas>=2.0", ## pandas must be below 2.0 version
5151
]
5252

5353
# For Python versions >= 3.11, ensure HoloViews is at least 1.15.3 for the bug fix
@@ -64,7 +64,7 @@
6464

6565
setuptools.setup(
6666
name="autoviz",
67-
version="0.1.808",
67+
version="0.1.901",
6868
author="Ram Seshadri",
6969
description="Automatically Visualize any dataset, any size with a single line of code",
7070
long_description=long_description,

0 commit comments

Comments
 (0)