xarray: create 2d dataset
C#
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#:
- Title
- c# half hour dropdown list
- Category
- C#
- Title
- .net core cli
- Category
- C#
- Title
- unity oncollisionenter2d
- Category
- C#
- Title
- c# round to closest multiple
- Category
- C#
- Title
- wpf restart application c#
- Category
- C#
- Title
- codecademy
- Category
- C#
- Title
- add mime type for woff in web.config
- Category
- C#
- Title
- unity list length
- Category
- C#
- Title
- unity get component
- Category
- C#
- Title
- c# array to list
- Category
- C#
- Title
- c# remove from list in foreach
- Category
- C#
- Title
- c# set textbox text
- Category
- C#
- Title
- c# getter setter
- Category
- C#
- Title
- binding c#
- Category
- C#
- Title
- wpf get name of clicked element
- Category
- C#
- Title
- loop over enum values
- Category
- C#
- Title
- edit form item from class C#
- Category
- C#
- Title
- Unity C# add slider into editor
- Category
- C#
- Title
- nullable unique constraint ef
- Category
- C#
- Title
- c# for loop without increment
- Category
- C#
- Title
- what data type should be for contact number in asp.net
- Category
- C#
- Title
- c# file exist
- Category
- C#
- Title
- linq in c#
- Category
- C#
- Title
- unity mobile controls
- Category
- C#
- Title
- how to make an array in csharp
- Category
- C#
- Title
- compose graphql query string in c#
- Category
- C#
- Title
- 2D follow ia unity 2D with agrorange
- Category
- C#
- Title
- c# expandoobject indexer
- Category
- C#
- Title
- c# list remove item based on property duplicate
- Category
- C#
- Title
- return random from enum
- Category
- C#
- Title
- class selector to property in asp net core dropdown
- Category
- C#
- Title
- query associative table ef6
- Category
- C#
- Title
- C# downloadstirng download old
- Category
- C#
- Title
- unity rigid body variable
- Category
- C#
- Title
- c# making a folder
- Category
- C#
- Title
- how to trim path in C#
- Category
- C#
- Title
- reload current scene unity
- Category
- C#
- Title
- c# char array to string
- Category
- C#
- Title
- c# linq select specific columns
- Category
- C#
- Title
- how do i limit the amount of prefabs in unity using c# script
- Category
- C#
- Title
- two players one phone unity gamne
- Category
- C#
- Title
- c# select first value from list
- Category
- C#
- Title
- c# discord bot
- Category
- C#
- Title
- attribute usage c#
- Category
- C#
- Title
- degree to radians c#
- Category
- C#
- Title
- console application in c# ms crm
- Category
- C#
- Title
- c# iterate over string
- Category
- C#
- Title
- c# counting lines
- Category
- C#
- Title
- c# get every point in a line in matrix
- Category
- C#
- Title
- simple reset transform.rotation c#
- Category
- C#
- Title
- read configuration workerservice
- Category
- C#
- Title
- convert double to currency c#
- Category
- C#
- Title
- unity persistent data
- Category
- C#
- Title
- change partial view based on select asp.net core
- Category
- C#
- Title
- response redirect new tab
- Category
- C#
- Title
- how to set a gizmo color unity
- Category
- C#
- Title
- make a list c#
- Category
- C#
- Title
- copy a list in c# unity
- Category
- C#
- Title
- how to add to a list c#
- Category
- C#
- Title
- decimal to string whole number c#
- Category
- C#
- Title
- start a particle effect when a button is pushed
- Category
- C#
- Title
- unity quaternion identity
- Category
- C#
- Title
- c# distinct dictionary
- Category
- C#
- Title
- c# repeat string x times
- Category
- C#
- Title
- how to add a componet to a gameobject throgh code unity
- Category
- C#
- Title
- how to add object in dictionary in c#
- Category
- C#
- Title
- bool toggle unity c#
- Category
- C#
- Title
- unity array c#
- Category
- C#
- Title
- unity3d invector expand fsm controller
- Category
- C#
- Title
- application variable in asp.net core
- Category
- C#
- Title
- c# linq to select even numbers
- Category
- C#
- Title
- send type as argument c#
- Category
- C#
- Title
- unity to string
- Category
- C#
- Title
- c# httpclient azure function authorization
- Category
- C#
- Title
- c# polymorphism
- Category
- C#
- Title
- c# error CS0120
- Category
- C#
- Title
- how to find the type of a object c#
- Category
- C#
- Title
- or in unity
- Category
- C#
- Title
- c# how to take from a float
- Category
- C#
- Title
- c# thread sleep
- Category
- C#
- Title
- remove items from list c# condition
- Category
- C#
- Title
- c sharp string interpolation
- Category
- C#
- Title
- c# image to byte array
- Category
- C#
- Title
- how to convert object in string JSON c#
- Category
- C#
- Title
- winforms timer c#
- Category
- C#
- Title
- c# multiline comment
- Category
- C#
- Title
- xamarin hide back button
- Category
- C#
- Title
- C# array to label
- Category
- C#
- Title
- verifyusertokenasync password reset token
- Category
- C#
- Title
- c# unhandled exception in thread
- Category
- C#
- Title
- f reachable queue in c#
- Category
- C#
- Title
- c# string replace comma with newline
- Category
- C#
- Title
- unity get scrollbar value
- Category
- C#
- Title
- c sharp split string
- Category
- C#
- Title
- unity set text value
- Category
- C#
- Title
- how to set a transform equal to something unity
- Category
- C#
- Title
- c# empty IEnumerable
- Category
- C#
- Title
- c# find duplicates in list of strings
- Category
- C#
- Title
- c# ramdom
- Category
- C#
- Title
- zoom gedit
- Category
- C#