train1 = pd.read_csv('train.csv', iterator=True, chunksize=150_000, dtype={'acoustic_data': np.int16, 'time_to_failure': np.float64})
X_train = pd.DataFrame()
y_train = pd.Series()
for df in train1:
ch = gen_features(df['acoustic_data'])
X_train = X_train.append(ch, ignore_index=True)
y_train = y_train.append(pd.Series(df['time_to_failure'].values[-1]))
pd.options.display.max_columns = None
df = pd.DataFrame(X_train, columns=[ 'mean','std','min','max','kurtosis','skew','quantile0.01','quantile0.05','quantile0.95','quantile0.99','absmax','absmean','absstd','peak'])