Skip to content

Commit

Permalink
Merge pull request #103 from eltphd/codespace-ubiquitous-space-fishst…
Browse files Browse the repository at this point in the history
…ick-9rwx9j655g72xvg

Codespace ubiquitous space fishstick 9rwx9j655g72xvg
  • Loading branch information
AutoViML authored Dec 11, 2023
2 parents 83586ca + 5ddd7f0 commit 2c81b41
Show file tree
Hide file tree
Showing 6 changed files with 138 additions and 5 deletions.
Binary file added .DS_Store
Binary file not shown.
36 changes: 36 additions & 0 deletions .github/workflows/python-package-conda.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Python Package using Conda

on: [push]

jobs:
build-linux:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]:
max-parallel: 5

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Add conda to system path
run: |
# $CONDA is an environment variable pointing to the root of the miniconda directory
echo $CONDA/bin >> $GITHUB_PATH
- name: Install dependencies
run: |
conda env update --file environment.yml --name base
- name: Lint with flake8
run: |
conda install flake8
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
conda install pytest
pytest
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"python.pythonPath": "/opt/conda/bin/python"
}
94 changes: 94 additions & 0 deletions LCA Bokeh.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import pandas as pd\n",
"import numpy as np"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"#datapath = 'C:/Users/Ram/Documents/Ram/Data_Sets/'\n",
"datapath = ''\n",
"filename = ''\n",
"sep = ','\n",
"target = 'chas'"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"df = pd.read_csv(datapath+filename,sep=sep)\n",
"dft = df[:]\n",
"print(df.shape)\n",
"df.head(1)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"scrolled": false
},
"outputs": [],
"source": [
"dft = AV.AutoViz(datapath+filename, sep, target, \"\",\n",
" header=0, verbose=1,\n",
" lowess=False,chart_format='bokeh',max_rows_analyzed=150000,max_cols_analyzed=30)\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.13"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
6 changes: 3 additions & 3 deletions autoviz/AutoViz_Class.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ def warn(*args, **kwargs):
# from matplotlib import io
import io
import seaborn as sns
sns.set(style="whitegrid", color_codes=True)
sns.set(style="ticks", color_codes=True)
import re
import pdb
import pprint
import matplotlib
matplotlib.style.use('seaborn')
matplotlib.style.use('seaborn-v0_8-ticks')
from itertools import cycle, combinations
from collections import defaultdict
import copy
Expand Down Expand Up @@ -602,4 +602,4 @@ def data_cleaning_suggestions(df, target=None):
else:
print("Input must be a dataframe. Please check input and try again.")
return dqr
###################################################################################
###################################################################################
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
long_description=long_description,
long_description_content_type="text/markdown",
license='Apache License 2.0',
url="https://github.com/AutoViML/AutoViz",
url="https://github.com/eltphd/AutoViz.git",
packages=setuptools.find_packages(exclude=("tests",)),
install_requires=[
"xlrd",
Expand All @@ -22,7 +22,7 @@
"pandas",
"pyamg",
"matplotlib >=3.3.3, <3.6",
"seaborn>=0.11.1",
"seaborn>=0.13",
"scikit-learn",
"statsmodels",
"nltk",
Expand Down

0 comments on commit 2c81b41

Please sign in to comment.