Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] /economy/macro plotting series together doesn't work if one has daily data #3919

Closed
JerBouma opened this issue Jan 10, 2023 · 1 comment
Labels
bug Fix bug

Comments

@JerBouma
Copy link
Contributor

JerBouma commented Jan 10, 2023

The 10-year Government Bond yield of United Kingdom is depicted daily. This is not the case for Germany and France. Thus, plotting these together will not work. It completely takes out the lines for Germany and France.

image

Reproduce with the following code: macro --parameters Y10YD --countries France,Germany,United_Kingdom -s 2017-01-01 whereas this works fine macro --parameters Y10YD --countries France,Germany -s 2017-01-01 and this does as well macro --parameters Y10YD --countries United_Kingdom -s 2017-01-01. Raw data is also shown as NaN values.

2023 Jan 10, 10:17 (🦋) /economy/ $ macro --parameters Y10YD --countries France,Germany,United_Kingdom -s 2017-01-01 --raw

                                 Macro Data
┏━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━┓
┃                     ┃ france_Y10YD ┃ germany_Y10YD ┃ united_kingdom_Y10YD ┃
┡━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━┩
│ 2022-12-21 00:00:00 │ -            │ -             │ 3.62                 │
├─────────────────────┼──────────────┼───────────────┼──────────────────────┤
│ 2022-12-22 00:00:00 │ -            │ -             │ 3.64                 │
├─────────────────────┼──────────────┼───────────────┼──────────────────────┤
│ 2022-12-23 00:00:00 │ -            │ -             │ 3.68                 │
├─────────────────────┼──────────────┼───────────────┼──────────────────────┤
│ 2022-12-28 00:00:00 │ -            │ -             │ 3.73                 │
├─────────────────────┼──────────────┼───────────────┼──────────────────────┤
│ 2022-12-29 00:00:00 │ -            │ -             │ 3.74                 │
├─────────────────────┼──────────────┼───────────────┼──────────────────────┤
│ 2022-12-30 00:00:00 │ -            │ -             │ 3.73                 │
├─────────────────────┼──────────────┼───────────────┼──────────────────────┤
│ 2023-01-03 00:00:00 │ -            │ -             │ 3.71                 │
├─────────────────────┼──────────────┼───────────────┼──────────────────────┤
│ 2023-01-04 00:00:00 │ -            │ -             │ 3.58                 │
├─────────────────────┼──────────────┼───────────────┼──────────────────────┤
│ 2023-01-05 00:00:00 │ -            │ -             │ 3.63                 │
├─────────────────────┼──────────────┼───────────────┼──────────────────────┤
│ 2023-01-06 00:00:00 │ -            │ -             │ 3.55                 │
└─────────────────────┴──────────────┴───────────────┴──────────────────────┘

Trying to fix this with plot only gives very odd results: plot --y1 china_Y10YD,united_states_Y10YD,united_kingdom_Y10YD --y2 germany_Y10YD,france_Y10YD,japan_Y10YD

image

@github-actions github-actions bot added the bug Fix bug label Jan 10, 2023
@jmaslek
Copy link
Collaborator

jmaslek commented Jan 10, 2023

duplicate of #3886 (I feel like a stackoverflow admin sometimes :( )

@jmaslek jmaslek closed this as completed Jan 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fix bug
Projects
None yet
Development

No branches or pull requests

2 participants