Skip to content

Commit 8ff96c6

Browse files
committed
New version 0.1.904 ready
1 parent 7be67af commit 8ff96c6

File tree

4 files changed

+40
-56
lines changed

4 files changed

+40
-56
lines changed

Examples/AutoViz_Bokeh_Interactive_Demo.ipynb

+26-26
Large diffs are not rendered by default.

autoviz/AutoViz_Class.py

+12-28
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,17 @@
1414
# limitations under the License.
1515
#################################################################################################
1616
import os
17-
1817
import pandas as pd
19-
2018
########################################
2119
import warnings
22-
2320
from sklearn.exceptions import DataConversionWarning
24-
2521
####################################################################################
2622
import matplotlib
27-
2823
import seaborn as sns
29-
3024
import copy
3125
import time
3226
import traceback
3327
from pandas_dq import Fix_DQ, dq_report
34-
3528
##########################################################################################
3629
from autoviz.AutoViz_Holo import AutoViz_Holo
3730
from autoviz.AutoViz_Utils import draw_pivot_tables, draw_scatters
@@ -41,26 +34,16 @@
4134
from autoviz.AutoViz_Utils import find_remove_duplicates, classify_print_vars
4235
from autoviz.AutoViz_Utils import left_subtract
4336
from autoviz.AutoViz_NLP import draw_word_clouds
44-
45-
37+
#######################################################################################
4638
sns.set(style="ticks", color_codes=True)
47-
4839
matplotlib.use('agg')
49-
50-
5140
warnings.filterwarnings(action='ignore', category=DataConversionWarning)
52-
53-
5441
warnings.filterwarnings("ignore")
55-
56-
42+
#######################################################################################
5743
def warn(*args, **kwargs):
5844
pass
59-
60-
6145
warnings.warn = warn
62-
63-
46+
#######################################################################################
6447
class AutoViz_Class:
6548
"""
6649
##############################################################################
@@ -205,7 +188,7 @@ def add_subheading(self, plotname, X):
205188
else:
206189
getattr(self, plotname)["subheading"].append(X)
207190

208-
def AutoViz(self, filename: (str or pd.DataFrame), sep=',', dep_var='', dfte=None, header=0, verbose=1,
191+
def AutoViz(self, filename: (str or pd.DataFrame), sep=',', depVar='', dfte=None, header=0, verbose=1,
209192
lowess=False, chart_format='svg', max_rows_analyzed=150000,
210193
max_cols_analyzed=30, save_plot_dir=None):
211194
"""
@@ -239,14 +222,15 @@ def AutoViz(self, filename: (str or pd.DataFrame), sep=',', dep_var='', dfte=Non
239222
#### it will simply save them. #####
240223
##############################################################################
241224
"""
242-
if dfte: # temporary until we have a major release, then remove dfte variable.
243-
filename = dfte
225+
if isinstance(dfte, pd.DataFrame): ### if there is a dataframe, choose it
226+
filename = dfte
244227

245-
if isinstance(dep_var, list):
246-
print('Since AutoViz cannot visualize multi-label targets, choosing first item in targets: %s' % dep_var[0])
247-
dep_var = dep_var[0]
248-
249-
####################################################################################
228+
if isinstance(depVar, list):
229+
print('Since AutoViz cannot visualize multi-label targets, choosing first item in targets: %s' % depVar[0])
230+
dep_var = depVar[0]
231+
else:
232+
dep_var = copy.deepcopy(depVar)
233+
####################################################################################
250234
if chart_format.lower() in ['bokeh', 'server', 'bokeh_server', 'bokeh-server', 'html']:
251235
dft = AutoViz_Holo(filename, sep, dep_var, header, verbose,
252236
lowess, chart_format, max_rows_analyzed,

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.903"
8+
__version__ = "0.1.904"
99
__holo_version__ = "0.0.4"
1010
__license__ = "Apache License 2.0"
1111
__copyright__ = "2020-21 Google"

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141

4242
setuptools.setup(
4343
name="autoviz",
44-
version="0.1.903",
44+
version="0.1.904",
4545
author="Ram Seshadri",
4646
description="Automatically Visualize any dataset, any size with a single line of code",
4747
long_description=long_description,

0 commit comments

Comments
 (0)