Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

Filter xarray (dataarray)

da = xr.DataArray(
    np.random.rand(4, 3),
    [
        ("time", pd.date_range("2000-01-01", periods=4)),
        ("space", ["IA", "IL", "IN"]),
    ],
)

da[:2]
da[0, 0]
da[:, [2, 1]]
Comment

PREVIOUS NEXT
Code Example
Python :: select nth item from list 
Python :: lib.stride_tricks.sliding_window_view(x, window_shape, axis=None, *, subok=False, writeable=False) 
Python :: py3-env.bat 
Python :: pandas impute with mean of grupby 
Python :: limiting user input to under 100 characters python 
Python :: sns nan matrix 
Python :: pyglet template 
Python :: print is not working in python 
Python :: module django contrib admin has no attribute action ACTION_CHECKBOX_NAME 
Python :: RuntimeError: DataLoader worker (pid(s) 13615) exited unexpectedly 
Python :: with statement python 3 files 
Python :: Create an identical list from the first list using list comprehension. 
Python :: type operator in python 
Python :: yticks in plotly expres 
Python :: append in dictionary with matrix values 
Python :: discertize dara python 
Python :: how to get current user info in odoo 8 in a controller 
Python :: python3 netifaces get current interface 
Python :: converting 4hr 20min to minutes 
Python :: python excel zelle schreiben 
Python :: bar chart with x-ticks 
Python :: sns linear regression 
Python :: fibonacci using function in python 
Python :: indentation error in python atom editor 
Python :: Python regex emailadres no jpg 
Python :: qtoverlay 
Python :: find average of list via for loop python 
Python :: python find matching string regardless of case 
Python :: get all non numeric columns pandas 
Python :: schema json in oython 
ADD CONTENT
Topic
Content
Source link
Name
6+8 =