An exception occurred when trying to convert a string column to float values during the liquidation process. The error indicates that one or more cells in the string column could not be converted to a float.
An exception occurred when trying to convert a string column to float values during the liquidation process. The error indicates that one or more cells in the string column could not be converted to a float.
An exception occurred when trying to convert a string column to float values during the liquidation process. The error indicates that one or more cells in the string column could not be converted to a float.
Ocurrió una excepción: could not convert string to float:
Traceback (most recent call last):
File "/tmp/DSLiquidacionMexicoWorker.py", line 72, in <module> run_mexico.ejecutar_liquidacion_manual(from_value, to_value, leer_databases) File "/tmp/DSLiquidacionMexicoWorker.py", line 56, in ejecutar_liquidacion_manual self.run_all_mx.execute_all_day_increment_manual(from_value, to_value, leer_databases) File "DSLiquidacionMexico/presentation_layer/mexico/run_all_mx.py", line 105, in execute_all_day_increment_manual self.execute_all_day_increment(from_value, to_value, leer_databases) File "DSLiquidacionMexico/presentation_layer/mexico/run_all_mx.py", line 72, in execute_all_day_increment df_liquidacion, df_lote_mid_pos = self.execute_all(fecha_proceso, leer_databases) File "DSLiquidacionMexico/presentation_layer/mexico/run_all_mx.py", line 56, in execute_all df_liquidacion = self.run_manuales_trx_mx.get_manuales_trx(df_redshift_liquidacion, fecha_proceso) File "DSLiquidacionMexico/logic_layer/mexico/q_trx_manuales/a_orchestrate_trx_manuales_m x.py", line 61, in get_manuales_trx df_liquidar = self.liquidar_manuales_mx.construir_liquidacion_manual(df_redshift, fecha_proceso) File "DSLiquidacionMexico/logic_layer/mexico/q_trx_manuales/b_liquidar_manuales_mx.py", line 170, in construir_liquidacion_manual df_trx_manuales = self.get_trx_manuales(fecha_proceso) File "DSLiquidacionMexico/logic_layer/mexico/q_trx_manuales/b_liquidar_manuales_mx.py", line 33, in get_trx_manuales df_trx_manuales[columna] = df_trx_manuales[columna].astype(float) File "/home/spark/.local/lib/python3.7/site-packages/pandas/core/generic.py", line 5815, in astype new_data = self._mgr.astype(dtype=dtype, copy=copy, errors=errors) File "/home/spark/.local/lib/python3.7/site-packages/pandas/core/internals/ managers.py", line 418, in astype return self.apply("astype", dtype=dtype, copy=copy, errors=errors) File "/home/spark/.local/lib/python3.7/site-packages/pandas/core/internals/ managers.py", line 327, in apply applied = getattr(b, f)(**kwargs) File "/home/spark/.local/lib/python3.7/site-packages/pandas/core/internals/ blocks.py", line 592, in astype new_values = astype_array_safe(values, dtype, copy=copy, errors=errors) File "/home/spark/.local/lib/python3.7/site-packages/pandas/core/dtypes/cast.py", line 1309, in astype_array_safe new_values = astype_array(values, dtype, copy=copy) File "/home/spark/.local/lib/python3.7/site-packages/pandas/core/dtypes/cast.py", line 1257, in astype_array values = astype_nansafe(values, dtype, copy=copy) File "/home/spark/.local/lib/python3.7/site-packages/pandas/core/dtypes/cast.py", line 1201, in astype_nansafe return arr.astype(dtype, copy=True) ValueError: could not convert string to float: