-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: dask.dataframe.to_xarray() #6058
Comments
Thanks for raising an issue @raybellwaves. In theory a |
We have I think this could probably be done, but some care would need to be taken to do so in an efficient manner. |
@shoyer in general, how well does xarray handle arrays with unknown chunk sizes? We can optionally compute the chunk sizes if desired, but the default would result in unknown sizes. |
I'm not sure. In theory it could be OK if there are no coordinate labels,
but I don't think we have any builtin support for unsized dimensions
currently.
…On Thu, Apr 2, 2020 at 10:49 AM Tom Augspurger ***@***.***> wrote:
@shoyer <https://github.com/shoyer> in general, how well does xarray
handle arrays with unknown chunk sizes? We can optionally compute the chunk
sizes if desired, but the default would result in unknown sizes.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#6058 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJJFVTSQNOYLQ7HPUEHWRTRKTF2FANCNFSM4L2KRCWA>
.
|
XREF PR in xarray: pydata/xarray#4659 |
See https://stackoverflow.com/questions/60896303/dask-convert-a-dask-dataframe-to-an-xarray-dataset/60904272#60904272
There is an equivalent method in
pandas
(pandas.DataFrame.to_xarray
) andxarray
has the method to convert to adask.dataframe.
(xarray.Dataset.to_dask_dataframe
)My motivation is I was showing how a package I developed
xskillscore
can be dropped in to your work flow if you are usingpandas.DataFrame
's (https://github.com/raybellwaves/xskillscore-tutorial/blob/master/01_Determinisitic.ipynb). Becausexskillscore
is an extension ofxarray
it works withdask
. I was looking to repeat this workflow using adask.dataframe
. In the end I went with thedask.array
approach (https://github.com/raybellwaves/xskillscore-tutorial/blob/master/03_Big_Data.ipynb).@mrocklin @TomAugspurger apologies for the tagging. you may know if there are
xarray
devs here who may be interested.The text was updated successfully, but these errors were encountered: