You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.rst
+23Lines changed: 23 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -102,6 +102,29 @@ Now that the transformation is trained, we confirm that it works on new data::
102
102
>>> np.round(mapper.transform(sample), 2)
103
103
array([[ 1. , 0. , 0. , 1.04]])
104
104
105
+
106
+
Outputting a dataframe
107
+
**********************
108
+
109
+
By default the output of the dataframe mapper is a numpy array. This is so because most sklearn estimators expect a numpy array as input. If however we want the output of the mapper to be a dataframe, we can do so using the parameter ``df_out`` when creating the mapper::
0 commit comments