Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 private static Array DecodeSeries(this PyObject py)
 => (Array)NumpyCodec.Decode(py.InvokeMethod("to_numpy"));