Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
lazarusA committed Sep 12, 2024
1 parent d6cda20 commit 353f5c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/UserGuide/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ stocks = Dict(:Stock1 => random_ohlcv(), :Stock2 => random_ohlcv(), :Stock3 => r
d_keys = keys(stocks)
````

currently there is not direct support to obtain `dims` from a `TimeArray`, but can build a function for it
currently there is not direct support to obtain `dims` from a `TimeArray`, but we can code a function for it

````@example howdoi
getTArrayAxes(ta::TimeArray) = (Dim{:time}(timestamp(ta)), Dim{:variable}(colnames(ta)), );
Expand All @@ -320,7 +320,7 @@ and a `Dataset` with all `stocks` names
ds = Dataset(; (d_keys .=> yax_list)...)
````

and it looks like there some small differences in the axes, they are being printed independently although they should be the same. Well, they are at least at the `==` level but not at `===`. We could use the axes from one `YAXArray` as reference and `rebuild` all the others
and, it looks like there some small differences in the axes, they are being printed independently although they should be the same. Well, they are at least at the `==` level but not at `===`. We could use the axes from one `YAXArray` as reference and `rebuild` all the others

````@example howdoi
yax_list = [rebuild(yax_list[1], values(stocks[k])) for k in d_keys];
Expand Down

0 comments on commit 353f5c9

Please sign in to comment.