- Create a Fast.ai machine from public templates w/ P4000 and public IP
- If you are not approved for using the P4000, request it. It deserves the waiting time (powerful than the default one with the same costs).
source deactivate fastai
#!/usr/bin/env python | |
# encoding: utf-8 | |
import tweepy # https://github.com/tweepy/tweepy | |
import csv | |
import json | |
import sys | |
with open('credentials/twitterCredentials.json', "r") as data_file: | |
data_loaded = json.load(data_file) |
# List unique values in a DataFrame column | |
# h/t @makmanalp for the updated syntax! | |
df['Column Name'].unique() | |
# Convert Series datatype to numeric (will error if column has non-numeric values) | |
# h/t @makmanalp | |
pd.to_numeric(df['Column Name']) | |
# Convert Series datatype to numeric, changing non-numeric values to NaN | |
# h/t @makmanalp for the updated syntax! |
PEP-8 is a set of Python style recommendations. pep8
is a module that checks your .py
file for violations. To make your Travis-CI build fail if you have any violations, you could add these lines to your .travis.yml
:
before_install:
- pip install pep8
script:
# Run pep8 on all .py files in all subfolders
# (I ignore "E402: module level import not at top of file"
# because of use case sys.path.append('..'); import <module>)