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

Datetime conversion with "freq" #15

Open
bukowa opened this issue Apr 15, 2023 · 1 comment
Open

Datetime conversion with "freq" #15

bukowa opened this issue Apr 15, 2023 · 1 comment

Comments

@bukowa
Copy link

bukowa commented Apr 15, 2023

I am not sure what is happening here (i am not familiar with grafana):
https://github.com/panodata/grafana-pandas-datasource/blob/main/grafana_pandas_datasource/core.py#L12

But this is changing my dataframe index in strange way, my dataframe does not care about freq and should never modify datetime index. Should there be an option to disable it per endpoint?

@amotl
Copy link
Contributor

amotl commented Apr 29, 2023

Dear Buk,

thank you for writing in. Currently, this repository contains code originating from @linar-jether's Gist at https://gist.github.com/linar-jether/95ff412f9d19fdf5e51293eb0c09b850, with a few adjustments, and probably a bit biased to my use cases at the time I was streamlining it. I will be happy to change the code as you see fit - maybe you want to submit a patch?

Other than this, I think the code should probably be validated to work with all of Python 3.11, Grafana 9, and pandas 2.x these days. On this detail, I expect only minor modifications.

With kind regards,
Andreas.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants