Use xray.Dataset with Monary

Issue #21 new
Femto Trader
created an issue

xray are N-D labeled arrays and datasets.

It will be nice if Monary could support this

see on xray side https://github.com/xray/xray/issues/683

# Get a xray.Dataset from a DataFrame
In [10]: ds = xray.Dataset.from_dataframe(df)
# may use ds = xray.Dataset(df)  # see https://github.com/xray/xray/issues/676
# Convert a column of DataFrame to a masked array
In [11]: ds['Bid'].to_masked_array()
Out[412]:
masked_array(data = [-- 0.88805 0.8880899999999999 ..., 0.87531 0.87531 0.87531],
             mask = [ True False False ..., False False False],
       fill_value = 1e+20)

Comments (2)

  1. Log in to comment