mercredi 31 mars 2021

Using Python to select a random date and add values relating to this date to an array?

I am looking for a piece of code that will do the following in Python using Jupyter Notebook;

  1. My excel file has 3 columns - Date (format = day/month/year 00:00), Wind Speed & Coefficient of Performance.
  2. Dates are between 05/May to 31/July.
  3. As there is 12,000+ rows of data, I have decided to take a sample of maybe 200 pieces of data.
  4. I want to use code that will randomly select a row from the 'Date' column and then will put the value of Wind Speed and Coefficient of Performance into separate arrays. I am relatively new to Python so any help will be greatly appreciated.

Many thanks




Aucun commentaire:

Enregistrer un commentaire