Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
@staticmethod
def _deserialize_field(field: str) -> Any:
return deserialize(field, "json")
df[col] = df[col].apply(lambda element: deserialize(element, "msgpack-ext"))
def _deserialize_data(data: np.ndarray) -> Any:
return deserialize(data.tobytes(), "msgpack-ext")
def _deserialize_field(field: str) -> Any:
return deserialize(field, "json")
@staticmethod
def _deserialize_data(data: np.ndarray) -> Any:
return deserialize(data.tobytes(), "msgpack-ext")
df[col] = df[col].apply(lambda element: deserialize(element, "msgpack-ext"))