private void Setup(bool force = false) { if (_isInitialized && !force) return; _isInitialized = true; DateTimeCodec.Initialize(this); NumpyCodec.Initialize(this); PandasCodec.Initialize(this); PyObjectConversions.RegisterEncoder(this); PyObjectConversions.RegisterDecoder(this); }
private static Array DecodeSeries(this PyObject py) => (Array)NumpyCodec.Decode(py.InvokeMethod("to_numpy"));