have the following error - ---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
in
3 df2 = spark.read.parquet('/data/mediation/applications/batch-scoring/897745949420556371/retrotests_results/zood_ucell_sample_20240612_custome_models/zood_Ucell_sample_20240612.csv__897745949420556371')
4
----> 5 df1['request_date'] = pd.to_datetime(df1['request_date'])
6 df2['request_date'] = pd.to_datetime(df2['request_date'])
7
/usr/local/lib64/python3.9/site-packages/pandas/core/tools/datetimes.py in to_datetime(arg, errors, dayfirst, yearfirst, utc, format, exact, unit, infer_datetime_format, origin, cache)
796 else:
797 result = result.tz_localize(tz)
--> 798 elif isinstance(arg, ABCSeries):
799 cache_array = _maybe_cache(arg, format, cache, convert_listlike)
800 if not cache_array.empty:
/usr/local/lib64/python3.9/site-packages/pandas/core/dtypes/generic.py in _check(cls, inst)
10 @classmethod # type: ignore
11 def _check(cls, inst) -> bool:
---> 12 return getattr(inst, attr, "_typ") in comp
13
14 dct = dict(instancecheck=_check, subclasscheck=_check)
/usr/local/lib/python3.9/site-packages/pyspark/sql/column.py in nonzero(self)
905
906 def nonzero(self):
--> 907 raise ValueError("Cannot convert column into bool: please use '&' for 'and', '|' for 'or', "
908 "'~' for 'not' when building DataFrame boolean expressions.")
909 bool = nonzero
ValueError: Cannot convert column into bool: please use '&' for 'and', '|' for 'or', '~' for 'not' when building DataFrame boolean expressions.