Description
There are quite a few instances of using deprecated python and pandas APIs for pyspark tests. These should be replaced by the preferred APIs which have been available for some time. For example in unittests: `assertRaisesRegexp()` -> `assertRaisesRegex()`