All Courses

how to store the name of independent variable in a list which show non linear behavior

By Sachin_raut4888, 2 months ago
  • Bookmark

what does the sentence mean ?


We don't have any coding for that by seeing graph we need to check and create a list.

– adharsha_t_n Oct 14, 2022 at 9:13 AM

1 Answer


You have to first plot the graphs between Independent Variables and Dependent Variables using Linear Regression, then you need to check which all are showing nonlinear behavior.

You have a function in pandas called columns (dataframe_name.columns) which gives you the list of all columns so you can just keep the columns in the list which show non-linear behavior.

Your Answer


Why You Should Learn Data Science in 2022?

Dec 15th (7:00 PM) 277 Registered
More webinars

Related Discussions

Running random forest algorithm with one variable

View More