{"id":26885,"library":"datacorecommon","title":"DataCore Common","description":"Wrapper functions for PySpark, currently at version 0.6.0. Provides helper utilities to simplify Spark DataFrame operations. Release cadence is irregular.","status":"active","version":"0.6.0","language":"python","source_language":"en","source_url":"https://pypi.org/project/datacorecommon/","tags":["pyspark","spark","wrapper","utility"],"install":[{"cmd":"pip install datacorecommon","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"Old import path; direct top-level import is correct.","wrong":"from datacorecommon.utils import str_to_date","symbol":"str_to_date","correct":"from datacorecommon import str_to_date"},{"note":"Top-level import works, but without from may cause namespace confusion.","wrong":"import datacorecommon; datacorecommon.get_spark_session()","symbol":"get_spark_session","correct":"from datacorecommon import get_spark_session"}],"quickstart":{"code":"from datacorecommon import get_spark_session, str_to_date\n\nspark = get_spark_session()\ndf = spark.createDataFrame([('2023-01-01',)], ['date_str'])\ndf = str_to_date(df, 'date_str', 'yyyy-MM-dd')\ndf.show()","lang":"python","description":"Create a Spark session and use str_to_date to convert string column to date."},"warnings":[{"fix":"Pin version in requirements and review changelog before upgrading.","message":"The library is still early stage (0.6.0). APIs may change without notice.","severity":"gotcha","affected_versions":"all"},{"fix":"Ensure PySpark is installed and matched to your Spark cluster version.","message":"Requires Python >=3.6 and a compatible PySpark installation. May not work with newer Spark versions.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run 'pip install datacorecommon' and use 'from datacorecommon import str_to_date'.","cause":"Library not installed or incorrect import path.","error":"ImportError: cannot import name 'str_to_date' from 'datacorecommon'"},{"fix":"Install PySpark: 'pip install pyspark'.","cause":"PySpark not installed.","error":"ModuleNotFoundError: No module named 'pyspark'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}