Python library to extend functional operations in the spirit of functional programming in scala. Provides support for missing operations and chain style functional calls.
EntilZha on master
Update DNS (compare)
csv.reader
is being used in the seq.csv
so if its not possible to pass the right parameters to that then it might make sense to add another method like seq.csv_dict
etc
csv.DictReader
makes each row a named tuple according to a list of field names or if thats not given then the first row of the csv file. Seems like having another method is good here, question is what to name it.
map(lambda cell: [cell, cell_level, user_input.area_name]).to_csv('/tmp/test.csv' ,mode='wa').
File "/usr/local/lib/python2.7/dist-packages/functional/pipeline.py", line 1498, in to_csvmap(lambda cell: [cell, cell_level, user_input.area_name]).to_csv('/tmp/test.csv' ,mode=u'a').
File "/usr/local/lib/python2.7/dist-packages/functional/pipeline.py", line 1501, in to_csvfrom sklearn.preprocessing import LabelEncoder
y_train = train_['country_destination']
train_user.drop(['country_destination', 'id'], axis=1, inplace=True)
x_train = train_df.values
label_encoder = LabelEncoder()
encoded_y_train = label_encoder.fit_transform(y_train)