<p dir="auto">Currently there are 2 options:</p>
<ul dir="auto">
<li>get all the columns, but without knowledge which one is the target one</li>
<li>get 2 columns splitted, again without knowledge of target column name.</li>
</ul>
<p dir="auto">As far as I know, Sklearn does not provide a way to get the names of the "columns" corresponding to the target. It would be useful to choose an standard name for this data, so that Sklearn-compatible datasets can provide this information.</p>
<p dir="auto">This has been asked before in StackOverflow:<br>
<a href="https://stackoverflow.com/questions/50877785/how-to-obtain-target-feature-name-from-a-sklearn-bunch" rel="nofollow">https://stackoverflow.com/questions/50877785/how-to-obtain-target-feature-name-from-a-sklearn-bunch</a><br>
but I have not seen any issue here. However in PR <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="27672189" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/2865" data-hovercard-type="pull_request" data-hovercard-url="/scikit-learn/scikit-learn/pull/2865/hovercard" href="https://github.com/scikit-learn/scikit-learn/pull/2865">#2865</a> it was hinted that it could be useful. Also, I think that if in the future Sklearn provides multi-output datasets it will be necessary.</p>
<p dir="auto">I propose that this data will be made available as "target_feature_names", as it seems clear what that means.</p>