Showing 16 of 16 total issues
Function autoplot
has a Cognitive Complexity of 40 (exceeds 5 allowed). Consider refactoring. Open
Open
def autoplot(data=None, columns=None, group_by=None, height=600, width=800):
"""Automatically choose and produce a statistical graphics based on up to three columns of data."""
assert group_by is None, "long data not supported yet"
vars_n = len(columns)
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function autoplot
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def autoplot(data=None, columns=None, group_by=None, height=600, width=800):
"""Automatically choose and produce a statistical graphics based on up to three columns of data."""
assert group_by is None, "long data not supported yet"
vars_n = len(columns)
Function heatmap
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def heatmap(
Function scatterplot
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def scatterplot(
Function multiscatterplot
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def multiscatterplot(
Function areaplot
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def areaplot(
Function stripplot
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def stripplot(
Function smoother
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def smoother(
Function barchart
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def barchart(data=None, x=0, y=1, color=False, height=600, width=800):
Function lineplot
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def lineplot(data=None, x=0, y=1, color=None, height=600, width=800):
Function boxplot
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def boxplot(data=None, columns=None, group_by=None, color=False, height=600, width=800):
Function layered_histogram
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def layered_histogram(data=None, columns=None, group_by=None, height=600, width=800):
Function qqplot
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def qqplot(data=None, x=0, y=1, height=600, width=800):
Function autocorrelation
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def autocorrelation(data=None, column=0, max_lag=None, height=600, width=800):
Function autoplot
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def autoplot(data=None, columns=None, group_by=None, height=600, width=800):
Function scatterplot
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
Open
def scatterplot(
data=None, x=0, y=1, color=None, opacity=1, tooltip=None, height=600, width=800
):
"""Generate a scatterplot."""
if color is not None:
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"