Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

Filter 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 :: éliminer le background image python 
Python :: np array specified lengte same value 
Python :: pythonmodules.txt 
Python :: Cannot seem to use import time and import datetime in same script in Python 
Python :: gridTraveler python 
Python :: pool.map multiple arguments 
Python :: python function changing arguments 
Python :: Generators 
Python :: concatenate the next row to the previous row pandas 
Python :: matplotlib share colorbar 
Python :: django annotate datetime field to char 
Python :: add label on choropleth map python 
Python :: Summarize text using LED huggingface 
Python :: find mising number in O(n) 
Python :: configparser error reading relative file path 
Python :: first_last6 
Python :: create empty polygon python 
Python :: Jhoom.In 
Python :: python in a nutshell 
Python :: 2600/6 
Python :: creating a frequency table | generating a frequency table 
Python :: get the hour of every instance of the date_time 
Python :: python code for fibonacci 
Python :: django on_delete rules 
Python :: boto3 cross region 
Python :: disable network on pytest 
Python :: python counting subfolders on specific level 
Python :: check if timestamp is NaT 
Python :: > not supported between tuple and int 
Python :: pandas within group pairwise distances 
ADD CONTENT
Topic
Content
Source link
Name
5+4 =