import pandas as pd
datos=pd.read_csv('datos.csv', header=0 )
datos=(datos[datos.iloc[:,3]>=0])
anios1=datos[datos.iloc[:,2]==1975]
Use this code to read a database, this database stores precipitation in a certain area every day every day from 1950 to 2015. Subsequently extracted as a new database the values corresponding to the year 1975.
The idea of the code in general is to obtain the highest precipitation of each month of that year and make a graph with that data.
I did not find a way to extract the rows with the values I need as a new database.