Posts tagged python

Batch Processing Jupyter Notebooks with Papermill

Jupyter notebooks are really good for doing the heavy lifting of data analysis by:

Allowing you to showcase your work in a single place. You can see the complete “paper trail” of what was done. This includes the code, results, visuals and the narrative accompanying your analysis.

Read more ...


Python Tutorial FAQ - Part 3

Here is a compilation of questions from the third session of the Python Tutorial Seminar Series which covered writing functions as well as f-string formatting.

Q. Seeing how 2/2 returns 1.0 instead of 1, is the numeric type automatically determined from the inputs or do you have to force it?

Read more ...


Python Tutorial FAQ - Part 2

Here is a compilation of questions and issues that arose during the second session of the Python Tutorial Seminar Series, on creating a data dictionary. After this first short series, these FAQ sections will be added to the Xdev tutorial website

Q. Why is list[0:10] the first 10 elements, not 11?

Read more ...


Python Tutorial FAQ

Here is a compilation of questions and issues that arose during the first session of the Python Tutorial Seminar Series. Hopefully all attendees feel that their issues are addressed here.

Q. I am having issues running the command: curl -kO https://sundowner.colorado.edu/weather/atoc8/wxobs20170821.txt. What should I do?

Read more ...


Writing multiple netCDF files in parallel with xarray and dask

A typical computation workflow with xarray consists of:

reading one or more netCDF files into an xarray dataset backed by dask using xr.open_mfdataset() or xr.open_dataset(chunks=...),

../../../_images/68a7c16c9445f3a38f0c52d82c39b90ee5c24aa7b18fdc82136c224079f446da.png

Read more ...