Fix AttributeError when design is a DataFrame
Fix AttributeError when design is a DataFrame: a task in Trending-SWE1.0 (Harbor dataset). Title: Fix AttributeError when design is a DataFrame
The task
**Title:** Fix AttributeError when design is a DataFrame
Part of scalingX/Trending-SWE1.0.