Created
March 30, 2020 13:22
-
-
Save kylebrandt/674325c449a75e75c45e25b9c664d129 to your computer and use it in GitHub Desktop.
sparse long wide print output
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=== RUN TestLongToWide/sparse:_one_value,_two_factor | |
Name: long_to_wide_test | |
Dimensions: 4 Fields by 6 Rows | |
+-------------------------------+---------------------+---------------------+-------------------------+ | |
| Name: Time | Name: Values Floats | Name: Animal Factor | Name: Location | | |
| Labels: | Labels: | Labels: | Labels: | | |
| Type: []time.Time | Type: []float64 | Type: []string | Type: []string | | |
+-------------------------------+---------------------+---------------------+-------------------------+ | |
| 2020-01-02 03:04:00 +0000 UTC | 1 | cat | Florida | | |
| 2020-01-02 03:04:00 +0000 UTC | 2 | sloth | Central & South America | | |
| 2020-01-02 03:04:30 +0000 UTC | 3 | cat | Florida | | |
| 2020-01-02 03:04:30 +0000 UTC | 4 | sloth | Central & South America | | |
| 2020-01-02 03:05:00 +0000 UTC | 55 | pangolin | | | |
| 2020-01-02 03:05:30 +0000 UTC | 6 | sloth | Central & South America | | |
+-------------------------------+---------------------+---------------------+-------------------------+ | |
Name: long_to_wide_test | |
Dimensions: 4 Fields by 4 Rows | |
+-------------------------------+---------------------------------------------+---------------------------------------------------------------+-------------------------------------------+ | |
| Name: Time | Name: Values Floats | Name: Values Floats | Name: Values Floats | | |
| Labels: | Labels: Animal Factor=cat, Location=Florida | Labels: Animal Factor=sloth, Location=Central & South America | Labels: Animal Factor=pangolin, Location= | | |
| Type: []time.Time | Type: []float64 | Type: []float64 | Type: []float64 | | |
+-------------------------------+---------------------------------------------+---------------------------------------------------------------+-------------------------------------------+ | |
| 2020-01-02 03:04:00 +0000 UTC | 1 | 2 | 0 | | |
| 2020-01-02 03:04:30 +0000 UTC | 3 | 4 | 0 | | |
| 2020-01-02 03:05:00 +0000 UTC | 0 | 0 | 55 | | |
| 2020-01-02 03:05:30 +0000 UTC | 0 | 6 | 0 | | |
+-------------------------------+---------------------------------------------+---------------------------------------------------------------+-------------------------------------------+ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment