Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions ema_workbench/analysis/parcoords.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def setup_parallel_plot(labels, minima, maxima, formatter=None, fs=14, rot=90):


def get_limits(data):
"""Helper function to get limits of a FataFrame that can serve as input to ParallelAxis.
"""Helper function to get limits of a DataFrame that can serve as input to ParallelAxis.

Parameters
----------
Expand All @@ -110,11 +110,9 @@ def get_limits(data):
Returns
-------
DataFrame

"""

def limits(x):
if x.dtype == "object":
if x.dtype == "object" or pd.api.types.is_string_dtype(x.dtype):
return pd.Series([set(x), set(x)])
else:
return pd.Series([x.min(), x.max()])
Expand Down
Loading