The 'apply' function is deprecated and makes code harder to read as most Python programmers will not be familiar with it (it has been deprecated since 2003).

Replace apply(function, args) with function(*args).

Replace apply(function, args, keywords) with function(*args, **keywords).

  • Python Standard Library: apply.
  • Python PEP-290: Code Migration and Modernization.