How to find titles of column of input and output variable?

How to find titles of column of input and output variable? Any function in Pandas?

try df.columns. you are expected to identify the input and output column(s)

2 Likes

to add to @sl2902 ’s answer. you can do df.columns.tolist() to get them as python list to include as the inputs cols.
Courtesy- @PrajwalPrashanth