I hereby claim:
- I am adidonato on github.
- I am adidonato (https://keybase.io/adidonato) on keybase.
- I have a public key ASD1aLEnE7kEjcIryUo-gzc0K715sfuf16KH7rzvKm9f7wo
To claim this, I am signing this object:
license: gpl-3.0 | |
height: 960 | |
border: no |
I hereby claim:
To claim this, I am signing this object:
#List unique values in a DataFrame column | |
pd.unique(df.column_name.ravel()) | |
#Convert Series datatype to numeric, getting rid of any non-numeric values | |
df['col'] = df['col'].astype(str).convert_objects(convert_numeric=True) | |
#Grab DataFrame rows where column has certain values | |
valuelist = ['value1', 'value2', 'value3'] | |
df = df[df.column.isin(value_list)] |
#!/usr/local/bin/blue-python2.7 | |
""" | |
TESTED WITH: | |
array = np.random.random(10) | |
value = 0.5 | |
WHICH RESULTED IN: |
#!/bin/bash | |
################################################################### | |
# usage: ./compose_apple_mail.sh 'address' 'Subject' path_to_file # | |
# no arguments are compulsory # | |
################################################################### | |
echo "tell application \"Mail\" | |
activate |