class_docstr: A collection of data which can be pre-processed in parallel on Spark.
class_docstr_tok: ["A","collection","of","data","which","can","be","pre-processed","in","parallel","on","Spark","."]
docstr: Get the max values of the column name. This is only applicable for SparkXShards
   of Pandas Series.
  
  :param col_name column name that need return the max value
  :return: maximum value for the specified columns.
docstr_tok: ["Get","the","max","values","of","the","column","name",".","This","is","only","applicable","for","SparkXShards","of","Pandas","Series",".",":","param","col_name","column","name","that","need","return","the","max","value",":","return",":","maximum","value","for","the","specified","columns","."]
code: def max_values(self, col_name: str) -> Union[int, float, None]:
      """
      Get the max values of the column name. This is only applicable for SparkXShards
       of Pandas Series.
  
      :param col_name column name that need return the max value
      :return: maximum value for the specified columns.
      """
      if self._get_class_name() == "pandas.core.frame.DataFrame":
          import pandas as pd
  
          rdd = self.rdd.map(lambda s: s[col_name].max())
          max_value = rdd.reduce(
              lambda value1, value2: max(value1, value2)
          )
          return max_value
      else:
          invalidInputError(
              False,
              "Currently only support max() on XShards of Pandas DataFrame",
          )
      return None
  
imports: from py4j.protocol import Py4JError
  from bigdl.orca.data.utils import *
  from bigdl.orca import OrcaContext
  from bigdl.dllib.utils.common import get_node_and_core_number, get_spark_sql_context, get_spark_context
  from bigdl.dllib.utils import nest
  from bigdl.dllib.utils.log4Error import invalidInputError
  import numpy
  from typing import TYPE_CHECKING, Any
  from typing import Callable, Dict, List, Optional, Tuple, Union
label_desc: Use image node_id 20 for calling the SparkXShards obj's underlying member method code with example usage: obj.max_values(col_name) and returns: None, max_value