Sep-23-2019, 03:28 PM
(This post was last modified: Sep-23-2019, 03:35 PM by LobateScarp.)
That looks very promising.
An enormous thank you for the work you put into this. I'm looking forward to trying it out. I will advise.
An enormous thank you for the work you put into this. I'm looking forward to trying it out. I will advise.
>>> stations = [21413, 21414, 21415, 21416, 21417, 21418, 21419, 21420] maximums = [] for station in stations: for year in range(2010, 2018): try: filename = f'https://www.ndbc.noaa.gov/view_text_file.php?filename={station}t{year}.txt.gz&dir=data/historical/dart/' df = pd.read_csv(filename, sep='\s+',header=None,skiprows=2, names=['height'],usecols=[7]).query('height != 9999.0').max()[0] maximums.append(df) except: print(f'Missing: station {station}, year: {year}') continue SyntaxError: multiple statements found while compiling a single statementI seem to be getting this syntax error often. I'm using Python 3.6.8. It did this when I tried some code in an exercise and I don't know why.