Skip to content

Commit 1679964

Browse files
committed
Update doctests
1 parent 761a098 commit 1679964

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

tlviz/_xarray_wrapper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@ def add_factor_metadata(cp_tensor, dataset):
5757
>>> bikes.coords
5858
Coordinates:
5959
* End station name (End station name) object 2kB '7 Juni Plassen' ... 'Øke...
60+
lat (End station name) float64 2kB 59.92 59.93 ... 59.93 59.92
61+
lon (End station name) float64 2kB 10.73 10.75 ... 10.8 10.78
6062
* Year (Year) int32 8B 2020 2021
6163
* Month (Month) int32 48B 1 2 3 4 5 6 7 8 9 10 11 12
6264
* Day of week (Day of week) int32 28B 0 1 2 3 4 5 6
6365
* Hour (Hour) int32 96B 0 1 2 3 4 5 6 7 ... 17 18 19 20 21 22 23
64-
lat (End station name) float64 2kB 59.92 59.93 ... 59.93 59.92
65-
lon (End station name) float64 2kB 10.73 10.75 ... 10.8 10.78
6666
6767
We see that the ``End station name`` dimension has two additional columns: ``lat`` and ``lon``.
6868
These contain metadata about the end station coordinates, and it can be useful to have these

tlviz/postprocessing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ def postprocess(
317317
>>> print(type(cp_tensor[1][0]))
318318
<class 'numpy.ndarray'>
319319
>>> print(type(cp_tensor_postprocessed[1][0]))
320-
<class 'pandas.core.frame.DataFrame'>
320+
<class 'pandas.DataFrame'>
321321
322322
323323
We see that after postprocessing, the factor matrix has unit norm

0 commit comments

Comments
 (0)