Skip to content

Commit

Permalink
New version 0.1.904 ready
Browse files Browse the repository at this point in the history
  • Loading branch information
AutoViML committed Apr 29, 2024
1 parent 7be67af commit 8ff96c6
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 56 deletions.
52 changes: 26 additions & 26 deletions Examples/AutoViz_Bokeh_Interactive_Demo.ipynb

Large diffs are not rendered by default.

40 changes: 12 additions & 28 deletions autoviz/AutoViz_Class.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,17 @@
# limitations under the License.
#################################################################################################
import os

import pandas as pd

########################################
import warnings

from sklearn.exceptions import DataConversionWarning

####################################################################################
import matplotlib

import seaborn as sns

import copy
import time
import traceback
from pandas_dq import Fix_DQ, dq_report

##########################################################################################
from autoviz.AutoViz_Holo import AutoViz_Holo
from autoviz.AutoViz_Utils import draw_pivot_tables, draw_scatters
Expand All @@ -41,26 +34,16 @@
from autoviz.AutoViz_Utils import find_remove_duplicates, classify_print_vars
from autoviz.AutoViz_Utils import left_subtract
from autoviz.AutoViz_NLP import draw_word_clouds


#######################################################################################
sns.set(style="ticks", color_codes=True)

matplotlib.use('agg')


warnings.filterwarnings(action='ignore', category=DataConversionWarning)


warnings.filterwarnings("ignore")


#######################################################################################
def warn(*args, **kwargs):
pass


warnings.warn = warn


#######################################################################################
class AutoViz_Class:
"""
##############################################################################
Expand Down Expand Up @@ -205,7 +188,7 @@ def add_subheading(self, plotname, X):
else:
getattr(self, plotname)["subheading"].append(X)

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

if isinstance(dep_var, list):
print('Since AutoViz cannot visualize multi-label targets, choosing first item in targets: %s' % dep_var[0])
dep_var = dep_var[0]

####################################################################################
if isinstance(depVar, list):
print('Since AutoViz cannot visualize multi-label targets, choosing first item in targets: %s' % depVar[0])
dep_var = depVar[0]
else:
dep_var = copy.deepcopy(depVar)
####################################################################################
if chart_format.lower() in ['bokeh', 'server', 'bokeh_server', 'bokeh-server', 'html']:
dft = AutoViz_Holo(filename, sep, dep_var, header, verbose,
lowess, chart_format, max_rows_analyzed,
Expand Down
2 changes: 1 addition & 1 deletion autoviz/__version__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
__author__ = "Ram Seshadri"
__description__ = "Automatically Visualize any data set any size with a Single Line of Code"
__url__ = "https://github.com/AutoViML/AutoViz.git"
__version__ = "0.1.903"
__version__ = "0.1.904"
__holo_version__ = "0.0.4"
__license__ = "Apache License 2.0"
__copyright__ = "2020-21 Google"
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

setuptools.setup(
name="autoviz",
version="0.1.903",
version="0.1.904",
author="Ram Seshadri",
description="Automatically Visualize any dataset, any size with a single line of code",
long_description=long_description,
Expand Down

0 comments on commit 8ff96c6

Please sign in to comment.