pyspark.pandas.show_versions#

pyspark.pandas.show_versions(as_json=False)[source]#

Provide useful information, important for bug reports.

It comprises info about hosting operation system, pyspark.pandas version, and versions of other installed relative packages.

Added in version 4.3.0.

Parameters:
as_jsonstr or bool, default False
  • If False, outputs info in a human readable form to the console.

  • If str, it will be considered as a path to a file. Info will be written to that file in JSON format.

  • If True, outputs info in JSON format to the console.

Examples

>>> ps.show_versions()
INSTALLED VERSIONS
------------------
python           : 3.10.6.final.0
python-bits      : 64
...
pyspark          : 4.3.0.dev0
pandas           : 2.2.0
numpy            : 1.24.3
pyarrow          : 15.0.0
...