xarray: create 2d dataset
In [1]: data = np.random.rand(4, 3)
In [2]: locs = ['IA', 'IL', 'IN']
In [3]: times = pd.date_range('2000-01-01', periods=4)
In [4]: foo = xr.DataArray(data, coords=[times, locs], dims=['time', 'space'])
In [5]: foo
Out[5]:
<xarray.DataArray (time: 4, space: 3)>
array([[0.127, 0.967, 0.26 ],
[0.897, 0.377, 0.336],
[0.451, 0.84 , 0.123],
[0.543, 0.373, 0.448]])
Coordinates:
* time (time) datetime64[ns] 2000-01-01 2000-01-02 2000-01-03 2000-01-04
* space (space) <U2 'IA' 'IL' 'IN'
Also in C#:
- what is a protected int c#
- asp.net mvc 5 codefirst dropdown list
- .net core copy file in folder to root
- c# discord bot
- string isnullorempty vs isnullorwhitespace
- c# display float with 2 decimal places
- how to check if an integer is in array c#
- c# string to character array
- On add component unity
- convert string to boolean c#
- how to reference scripts in other scenes unity
- how to update a project to cross target .net core
- c# split large file into chunks
- asp.net c# write string to text file
- membership get user id
- c# how to open file explorer
- c# get desktop path
- how to create a list c#
- viewBag as a list
- c# make string null
- c# string remove special characters
- iframe set html content c#
- math class C# exponents
- unity left mouse button