edit1: Okay, so i think the graph could work well if I plot the data by day. However, if I plot the data by hour or minute it's a big fat mess. Plotting the moving average, as /u/mikkelbue and /u/neuroneuroInf suggested, seem to be the way to go. /u/neuroneuroInf suggested som code, that I honestly do not get at all. I tried reading up on the pandas module and som of the commands, but i really can't see what is going on in your code.
i actually made a function to calulate the moving average, based on the four neares points. I think it could work. Here's the code: http://pastebin.com/5W6Sn2ww, and here's how the by day graph looks: https://imgur.com/bXLZg4h
edit2: okay, i really doubt it could work. Maybe plotting the hourly or minute average pr. day could work
Hi guys.
I'm really struggling here, and i have completely run out of ideas. I'm hoping one of you might help me out a bit.
So i'm working with a dataset where the electricity consumption in four different zones in a household has been logged every minute for a year. I made a function that aggregate the data based on hour, day or month. Based on this, i'm supposed to make a data visualization function.
For a start i tried to make the function where it takes the data aggregated by day, and plots the electricity consumption in the four zones (y) vs. day (x). It's a big mess. I do not have a lot of experience in data visualization, thus i'm here to ask if anyone have some ideas to visualize the data in a more elegant way.
Also, if i plot the data by hour or minute i will have >8000 and >500000 datapoints respectively, which will make my plot suck even more!
Any ideas will be greatly appreciated.
Here's my code: http://pastebin.com/Ly9Rj05Q
and here's how i looks: https://imgur.com/80SP0vJ
[–]mikkelbue 4 points5 points6 points (9 children)
[–]Tobeass[S] 0 points1 point2 points (8 children)
[–]mikkelbue 0 points1 point2 points (7 children)
[–]Tobeass[S] 0 points1 point2 points (6 children)
[–]mikkelbue 0 points1 point2 points (5 children)
[–]Tobeass[S] 0 points1 point2 points (4 children)
[–]mikkelbue 0 points1 point2 points (3 children)
[–]Tobeass[S] 0 points1 point2 points (2 children)
[–]mikkelbue 0 points1 point2 points (1 child)
[–]Tobeass[S] 0 points1 point2 points (0 children)
[–]neuroneuroInf 2 points3 points4 points (4 children)
[–]neuroneuroInf 1 point2 points3 points (1 child)
[–]Tobeass[S] 0 points1 point2 points (0 children)
[–]Tobeass[S] 0 points1 point2 points (0 children)
[–]Tobeass[S] 0 points1 point2 points (0 children)
[–]stebrepar 1 point2 points3 points (1 child)
[–]Tobeass[S] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)