pyspark.TaskContext.cpus# TaskContext.cpus()[source]# CPUs allocated to the task. Returns intthe number of CPUs.