In your case you can simply use select to resolve your problem:
df.select([c for c in df.columns if c not in {'GpuName','GPU1_TwoPartHwID'}])’
or in case if you just want to use drop then “reduce” should do the trick:
from functools import reduce
from pyspark.sql import DataFrame
reduce(DataFrame.drop, ['GpuName','GPU1_TwoPartHwID'], df)
Note:Spark 2.x+ supports multiple columns in drop.