docs: def npartitions(self):
          """
          Get number of partitions (Spark only).
          """
          if self.mode == 'spark':
              return self.tordd().getNumPartitions()
          else:
              notsupported(self.mode)