I currently have a method that uses Pandas to filter data from a massive .csv, and then uses matplotlib to graph a scatter plot of the filtered data, and then a line chart on top of that using the means of the data grouped by week. So there's a layer that has raw data, and then a processed line on top of that.
To accomplish that, I have to convert one of the columns from a string to DateTime using .to_datetime(). This, however, makes it impossible to run a regression on it. I can' t find a way to do this easily using Pandas, so is there a way to maybe convert the DateTime column to an int or float, run the regression/make a trend line, and then overlay it onto my graph?
I'm not really sure which parts of my code would be useful here but if there is a section that would help solve this I'd be happy to include it!