擅长:python、mysql、java
<p>好的,三天之后,我成功了。秘诀是在docstring中的标题“methods”之后添加一个简短的方法描述,而不是像我那样将它们留空</p>
<p>因此:</p>
<pre><code>class DropFeatures(BaseEstimator, TransformerMixin):
Some description.
Parameters
features_to_drop : str or list, default=None
Variable(s) to be dropped from the dataframe
Methods
-
fit:
some description
transform:
some description
fit_transform:
some description
</code></pre>