class_docstr: Holds partial cross feature statistics for a feature cross.
class_docstr_tok: ["Holds","partial","cross","feature","statistics","for","a","feature","cross","."]
docstr: Updates partial cross feature statistics.
docstr_tok: ["Updates","partial","cross","feature","statistics","."]
code: def update(self, feature_x: Series, feature_y: Series) -> None:
      """Updates partial cross feature statistics."""
      self.sum_x += feature_x.sum()
      self.sum_y += feature_y.sum()
      # pytype: disable=unsupported-operands  # typed-pandas
      self.sum_square_x += (feature_x**2).sum()
      self.sum_square_y += (feature_y**2).sum()
      self.sum_xy += (feature_x * feature_y).sum()
      # pytype: enable=unsupported-operands  # typed-pandas
      self.count += len(feature_x)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import itertools
  import math
  import random
  from typing import Dict, Iterable, List, Optional, Text
  import numpy
  import pandas
  from pandas import DataFrame, Series
  import pyarrow
  from tensorflow_data_validation import types
  from tensorflow_data_validation.statistics.generators import stats_generator
  from tensorflow_data_validation.utils import stats_util
  from tfx_bsl.arrow import array_util
  from tensorflow_metadata.proto.v0 import path_pb2
  from tensorflow_metadata.proto.v0 import statistics_pb2
label_desc: Use image node_id 3 for calling the _PartialCrossFeatureStats obj's underlying member method code with example usage: obj.update(feature_x, feature_y) without return types