We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd446d7 commit aa9e2bdCopy full SHA for aa9e2bd
asv_bench/benchmarks/repr.py
@@ -25,6 +25,25 @@ def time_repr_html(self):
25
self.ds._repr_html_()
26
27
28
+class ReprDataTree:
29
+ def setup(self):
30
+ # construct a datatree with 500 nodes
31
+ number_of_files = 20
32
+ number_of_groups = 25
33
+ tree_dict = {}
34
+ for f in range(number_of_files):
35
+ for g in range(number_of_groups):
36
+ tree_dict[f"file_{f}/group_{g}"] = xr.Dataset({"g": f * g})
37
+
38
+ self.dt = xr.DataTree.from_dict(tree_dict)
39
40
+ def time_repr(self):
41
+ repr(self.dt)
42
43
+ def time_repr_html(self):
44
+ self.dt._repr_html_()
45
46
47
class ReprMultiIndex:
48
def setup(self):
49
index = pd.MultiIndex.from_product(
0 commit comments