so i was given a csv file in python. i have to import it in another file and compare the content of the csv file in that new file...how?

how do i do this?

the file has years and rainfall, max, min temperature in this format: 

year, month, max, min,snowfall

1990, 1, 20, -3, 18.28

i know how to transport it in that new file already. but how do i for example compare all the year (it's up to 2019 btw with all the months present) and get it's maximum temperature? i just dont know how to start. also if u r down to help me more, u can email : -)

2 Answers

Relevance
  • Win
    Lv 5
    2 months ago

    Your best bet would be to import the CSV into a spreadsheet and do the comparisons there.

    Failing that you will need to store each value into a variable and compare them.

    An app like that would take a while to write and could easily pick up errors.

    I would look at the two files and examine them by eye first to see it the structure of the two datasets are the same.

  • keerok
    Lv 7
    2 months ago

    Try posting this at upwork.

Still have questions? Get your answers by asking now.