A Pen by Michael Graf on CodePen.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import boto3 | |
import argparse | |
def lookup_by_id(sgid): | |
sg = ec2.get_all_security_groups(group_ids=sgid) | |
return sg[0].name | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Upload and split the file into 2 parts. Please use this - http://pinetools.com/split-files | |
In Python: | |
import pandas as pd | |
data1 = pd.read_table("/data/ratings.dat.000", sep="\:\:", header=None, engine='python') | |
data2 = pd.read_table("/data/ratings.dat.001", sep="\:\:", header=None, engine='python') | |
data = data1.append(data2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"source" : "+919612345670", "destination" : "+919612345671", "source_location": "Delhi", "destination_location": "Mumbai", "call_duration": 2.03, "roaming": "false", "call_charge":2.03 } | |
{ "source" : "+919612345672", "destination" : "+919612545671", "source_location": "Mumbai", "destination_location": "Varanasi", "call_duration": 3.50, "roaming": "true", "call_charge":7.00 } | |
{"source" : "+919612345673", "destination" : "+919612645671", "source_location": "Chennai", "destination_location": "Kerela", "call_duration": 5.39, "roaming": "false", "call_charge":5.39 } | |
{"source" : "+919612345674", "destination" : "+919616545671", "source_location": "Kolkata", "destination_location": "Bangalore", "call_duration": 6.01, "roaming": "false", "call_charge":6.01 } | |
{"source" : "+919612345675", "destination" : "+919617745671", "source_location": "Chennai", "destination_location": "Hyderabad", "call_duration": 1.55, "roaming": "true", "call_charge":3.55 } | |
{"source" : "+919612345676", "destination" : "+919618845671", "source_ |
A demo for a drag and drop flag building exercise. Students will build more flags to collect into a group-built flag exercise with 9 different flags.
A Pen by Noisefactor on CodePen.