-
DescriptionThe scalar timeseries data should only have one dimension. But ndim is 2. I am not sure if this is a bug or feature. What I Did
|
Beta Was this translation helpful? Give feedback.
Answered by
jeandet
Aug 19, 2024
Replies: 3 comments
-
@Beforerr, yes this was a design choice I made at the beginning to be consistent with what Pandas does. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for explanation. Then is there any reliable way to tell one time
series is of scalar type?
…On Sun, Aug 18, 2024 at 2:59 PM Alexis Jeandet ***@***.***> wrote:
@Beforerr <https://github.com/Beforerr>, yes this was a design choice I
made at the beginning to be consistent with what Pandas does.
—
Reply to this email directly, view it on GitHub
<#149 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOAN2QPWYFTZMK6VH7EGGRLZSEDJJAVCNFSM6AAAAABMWAQ3SWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJVGM4DOOJVGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
-
I would say: def is_scalar(v):
return len(v.shape)==2 and v.shape[1]==1 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jeandet
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I would say: