def parse_cpu_string(self, cpu):
        """
        Returns CPU in number of cores (e.g., "120n" => 0.0000012)
        """
        if len(cpu) < 2 or is_numeric(cpu[-1]):
            return float(cpu)

        return float(cpu[:-1]) / CPU_UNITS[cpu[-1:]]

        Returns CPU in number of cores (e.g., "120n" => 0.0000012)
        
powerfulseal/k8s/metrics_server_client.py