Facebook
From Chocolate Anoa, 2 Months ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 82
  1. import numpy as np
  2. import pandas as pd
  3.  
  4. nazwisko = []
  5. ile = []
  6.  
  7. df = pd.read_csv('zamowienia.csv')
  8. print(df)
  9. print(df['Datazamowienia'])
  10. df['year'] = pd.DatetimeIndex(df['Datazamowienia']).year
  11. print(df)
  12. lata = [2003,2004,2005]
  13. for i in lata:
  14.     ramka = df[((df.year == i) & (df.Utarg < 1000))]
  15.     print("Rok: "+str(i))
  16.     print(ramka)
  17.