Skip to content

Pass argument to Django form

There are several questions on stackoverflow related to this topic but none of them explains whats happening neither provides working solution. I need to pass user’s first name as an argument to Django ModelForm when rendering template with this form. I have some basic form: Here’s my sample class…

How to calculate the hourly average of my data?

I have the data from several sensors stored in a CSV file. The time resolution is one minute. The daily average for each sensor was easily calculated. I need to calculate the hourly average of the data. CSV data set format: First is date, second is time, third is parameter name, fourth is parameter code, and …