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 number of partitions for this SparkXShards.
  
  :return: number of partitions.
docstr_tok: ["Get","number","of","partitions","for","this","SparkXShards",".",":","return",":","number","of","partitions","."]
code: def num_partitions(self):
      """
  
      Get number of partitions for this SparkXShards.
  
      :return: number of partitions.
      """
      return self.rdd.getNumPartitions()
  
imports: from py4j.protocol import Py4JError
  from zoo.orca.data.utils import *
  from zoo.orca import OrcaContext
  from zoo.common.nncontext import init_nncontext
  from zoo import ZooContext, get_node_and_core_number
  from zoo.util import nest
label_desc: Use image node_id 9 for calling the SparkXShards obj's underlying member method code with example usage: obj.num_partitions() and returns: self