def fit(self, blocks, y=None):
        """
        Args:
            blocks (List[Block]): as output by :class:`Blockifier.blockify`
            y (None): This isn't used, it's only here for API consistency.

        Returns:
            :class:`StandardizedFeature`: an instance of this class with the
                ``self.scaler`` attribute fit to the ``blocks`` data

        Note:
            When fitting the :class:`StandardScaler` object, you'll probably
                want to determine the mean and/or std of *multiple* HTML files'
                blocks, rather than just a single observation. To do that, just
                concatenate all of the blocks together in a single iterable.

            In contrast, you'll typically apply :meth:`transform` to a *single*
                HTML file's blocks at a time.
        """
        feature_array = self.feature.fit_transform(blocks)
        self.scaler = self.scaler.fit(feature_array)
        return self
def fit ( self , blocks , y = None ) : feature_array = self . feature . fit_transform ( blocks ) self . scaler = self . scaler . fit ( feature_array ) return self
Args:
            blocks (List[Block]): as output by :class:`Blockifier.blockify`
            y (None): This isn't used, it's only here for API consistency.

        Returns:
            :class:`StandardizedFeature`: an instance of this class with the
                ``self.scaler`` attribute fit to the ``blocks`` data

        Note:
            When fitting the :class:`StandardScaler` object, you'll probably
                want to determine the mean and/or std of *multiple* HTML files'
                blocks, rather than just a single observation. To do that, just
                concatenate all of the blocks together in a single iterable.

            In contrast, you'll typically apply :meth:`transform` to a *single*
                HTML file's blocks at a time.