sklearn-pandas
                                
                                 sklearn-pandas copied to clipboard
                                
                                    sklearn-pandas copied to clipboard
                            
                            
                            
                        Add `feature_indices_` attribute to mapper
The attribute indicatesthe mapping between input and ouptut variables (see added docs). I'd like someone to give +1 before merging. :) @asford ?
Differences with implementation in https://github.com/paulgb/sklearn-pandas/pull/54:
- Instead of storing self.feature_widths_and calculating theself.feature_indices_property on the fly, here I storeself.feature_widths_directly
- The attribute is generated after the first transform, not after fitting. @asford implementation does fitandtransformduring the mapperfit. Since there is no reliable way to calculate the feature weights before applying the full transform, I prefer to leave the attribute unavailable until then. I don't know if it would be interesting to turn the attribute into a property to be able to raise a custom informative exception when some tries to access the attribute before transformation.
Thoughts?