| name | autoviz-1-basic-one-line-eda |
| description | Sub-skill of autoviz: 1. Basic One-Line EDA. |
| version | 1.0.0 |
| category | data-analysis |
| type | reference |
| scripts_exempt | true |
1. Basic One-Line EDA
1. Basic One-Line EDA
Simplest Usage:
from autoviz import AutoViz_Class
AV = AutoViz_Class()
df_analyzed = AV.AutoViz(
filename="data.csv",
sep=",",
depVar="",
dfte=None,
header=0,
verbose=1,
lowess=False,
chart_format="svg",
max_rows_analyzed=150000,
max_cols_analyzed=30
)
print(f"Analyzed {df_analyzed.shape[0]} rows, {df_analyzed.shape[1]} columns")
From DataFrame:
from autoviz import AutoViz_Class
import pandas as pd
df = pd.read_csv("sales_data.csv")
df = pd.DataFrame({
"revenue": [100, 200, 150, 300, 250, 400, 350, 500],
"units": [10, 20, 15, 30, 25, 40, 35, 50],
"category": ["A", "B", "A", "B", "A", "B", "A", "B"],
"region": ["North", "South", "East", "West", "North", "South", "East", "West"],
"profit": [20, 40, 30, 60, 50, 80, 70, 100],
"customer_age": [25, 35, 45, 55, , , , ]
})
AV = AutoViz_Class()
df_result = AV.AutoViz(
filename=,
sep=,
depVar=,
dfte=df,
header=,
verbose=,
chart_format=
)
With Target Variable Analysis:
from autoviz import AutoViz_Class
import pandas as pd
df_classification = pd.DataFrame({
"feature_1": [1.2, 2.3, 1.5, 3.4, 2.1, 4.5, 3.2, 5.1],
"feature_2": [0.5, 1.2, 0.8, 2.1, 1.0, 3.2, 2.4, 4.0],
"feature_3": ["low", "medium", "low", "high", "medium", "high", "medium", "high"],
"target": [0, 0, 0, 1, 0, 1, 1, 1]
})
AV = AutoViz_Class()
df_analyzed = AV.AutoViz(
filename="",
sep=",",
depVar="target",
dfte=df_classification,
header=0,
verbose=2,
chart_format="svg"
)
df_regression = pd.DataFrame({
"size": [, , , , , , , ],
: [, , , , , , , ],
: [, , , , , , , ],
: [, , , , , , , ],
: [, , , , , , , ]
})
df_analyzed = AV.AutoViz(
filename=,
sep=,
depVar=,
dfte=df_regression,
header=,
verbose=,
chart_format=
)