This file contains hidden or 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
import os | |
import csv | |
with open('old-names-new-names.csv', 'rb') as csvfile: | |
csvreader = csv.reader(csvfile, delimiter=',', quotechar='"') | |
for row in csvreader: | |
name = row[0] + '.jpg' | |
new = row[1] + '.jpg' | |
if os.path.exists(name): | |
os.rename(name, new) |
This file contains hidden or 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
"state","latitude","longitude" | |
AK,61.3850,-152.2683 | |
AL,32.7990,-86.8073 | |
AR,34.9513,-92.3809 | |
AS,14.2417,-170.7197 | |
AZ,33.7712,-111.3877 | |
CA,36.1700,-119.7462 | |
CO,39.0646,-105.3272 | |
CT,41.5834,-72.7622 | |
DC,38.8964,-77.0262 |
This file contains hidden or 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
[ | |
{ | |
"country":"Asia", | |
"latitude":44.707188, | |
"longitude":87.539063 | |
}, | |
{ | |
"country":"Australia", | |
"latitude":-25.334761, | |
"longitude":134.648438 |
This file contains hidden or 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
[ | |
{ | |
"state":"AK", | |
"latitude":61.3850, | |
"longitude":-152.2683 | |
}, | |
{ | |
"state":"AL", | |
"latitude":32.7990, | |
"longitude":-86.8073 |
This file contains hidden or 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
{"90001":{"longitude":-118.2479,"postalCode":"90001","placeName":"Los Angeles","latitude":33.9731},"90002":{"longitude":-118.2462,"postalCode":"90002","placeName":"Los Angeles","latitude":33.9497},"90003":{"longitude":-118.2727,"postalCode":"90003","placeName":"Los Angeles","latitude":33.9653},"90004":{"longitude":-118.3029,"postalCode":"90004","placeName":"Los Angeles","latitude":34.0762},"90005":{"longitude":-118.3012,"postalCode":"90005","placeName":"Los Angeles","latitude":34.0585},"90006":{"longitude":-118.2917,"postalCode":"90006","placeName":"Los Angeles","latitude":34.0493},"90007":{"longitude":-118.2871,"postalCode":"90007","placeName":"Los Angeles","latitude":34.0294},"90008":{"longitude":-118.3411,"postalCode":"90008","placeName":"Los Angeles","latitude":34.0116},"90009":{"longitude":-118.2987,"postalCode":"90009","placeName":"Los Angeles","latitude":33.7866},"90010":{"longitude":-118.3027,"postalCode":"90010","placeName":"Los Angeles","latitude":34.0606},"90011":{"longitude":-118.2582,"postalCode" |
This file contains hidden or 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
{"80001":{"longitude":-105.2239,"postalCode":"80001","placeName":"Arvada","latitude":39.522},"80002":{"longitude":-105.0984,"postalCode":"80002","placeName":"Arvada","latitude":39.7945},"80003":{"longitude":-105.0655,"postalCode":"80003","placeName":"Arvada","latitude":39.8286},"80004":{"longitude":-105.1177,"postalCode":"80004","placeName":"Arvada","latitude":39.8141},"80005":{"longitude":-105.1097,"postalCode":"80005","placeName":"Arvada","latitude":39.8422},"80006":{"longitude":-105.2239,"postalCode":"80006","placeName":"Arvada","latitude":39.522},"80007":{"longitude":-105.1724,"postalCode":"80007","placeName":"Arvada","latitude":39.8634},"80010":{"longitude":-104.8646,"postalCode":"80010","placeName":"Aurora","latitude":39.7368},"80011":{"longitude":-104.8152,"postalCode":"80011","placeName":"Aurora","latitude":39.7378},"80012":{"longitude":-104.8377,"postalCode":"80012","placeName":"Aurora","latitude":39.6987},"80013":{"longitude":-104.7846,"postalCode":"80013","placeName":"Aurora","latitude":39.6575},"8 |
This file contains hidden or 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
{"70001":{"longitude":-90.1695,"postalCode":"70001","placeName":"Metairie","latitude":29.9871},"70002":{"longitude":-90.163,"postalCode":"70002","placeName":"Metairie","latitude":30.0098},"70003":{"longitude":-90.2146,"postalCode":"70003","placeName":"Metairie","latitude":29.9975},"70004":{"longitude":-90.0901,"postalCode":"70004","placeName":"Metairie","latitude":29.6779},"70005":{"longitude":-90.1331,"postalCode":"70005","placeName":"Metairie","latitude":30.0005},"70006":{"longitude":-90.1915,"postalCode":"70006","placeName":"Metairie","latitude":30.0129},"70009":{"longitude":-90.0901,"postalCode":"70009","placeName":"Metairie","latitude":29.6779},"70010":{"longitude":-90.0901,"postalCode":"70010","placeName":"Metairie","latitude":29.6779},"70011":{"longitude":-90.0901,"postalCode":"70011","placeName":"Metairie","latitude":29.6779},"70030":{"longitude":-90.4407,"postalCode":"70030","placeName":"Des Allemands","latitude":29.8134},"70031":{"longitude":-90.2925,"postalCode":"70031","placeName":"Ama","latitude" |
This file contains hidden or 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
{"60001":{"longitude":-88.4525,"postalCode":"60001","placeName":"Alden","latitude":42.3248},"60002":{"longitude":-88.1178,"postalCode":"60002","placeName":"Antioch","latitude":42.4648},"60004":{"longitude":-87.9792,"postalCode":"60004","placeName":"Arlington Heights","latitude":42.112},"60005":{"longitude":-87.9856,"postalCode":"60005","placeName":"Arlington Heights","latitude":42.0639},"60006":{"longitude":-87.6873,"postalCode":"60006","placeName":"Arlington Heights","latitude":41.8119},"60007":{"longitude":-87.9931,"postalCode":"60007","placeName":"Elk Grove Village","latitude":42.0076},"60008":{"longitude":-88.0191,"postalCode":"60008","placeName":"Rolling Meadows","latitude":42.073},"60009":{"longitude":-87.6873,"postalCode":"60009","placeName":"Elk Grove Village","latitude":41.8119},"60010":{"longitude":-88.1383,"postalCode":"60010","placeName":"Barrington","latitude":42.1614},"60011":{"longitude":-87.6101,"postalCode":"60011","placeName":"Barrington","latitude":42.3228},"60012":{"longitude":-88.3213,"po |
This file contains hidden or 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
{"50001":{"longitude":-93.3767,"postalCode":"50001","placeName":"Ackworth","latitude":41.3737},"50002":{"longitude":-94.6444,"postalCode":"50002","placeName":"Adair","latitude":41.5137},"50003":{"longitude":-94.038,"postalCode":"50003","placeName":"Adel","latitude":41.6221},"50005":{"longitude":-92.9882,"postalCode":"50005","placeName":"Albion","latitude":42.1143},"50006":{"longitude":-93.3841,"postalCode":"50006","placeName":"Alden","latitude":42.5179},"50007":{"longitude":-93.6063,"postalCode":"50007","placeName":"Alleman","latitude":41.8159},"50008":{"longitude":-93.3724,"postalCode":"50008","placeName":"Allerton","latitude":40.7023},"50009":{"longitude":-93.4724,"postalCode":"50009","placeName":"Altoona","latitude":41.6475},"50010":{"longitude":-93.6003,"postalCode":"50010","placeName":"Ames","latitude":42.0379},"50011":{"longitude":-93.4652,"postalCode":"50011","placeName":"Ames","latitude":42.036},"50012":{"longitude":-93.6485,"postalCode":"50012","placeName":"Ames","latitude":42.0236},"50013":{"longitu |
This file contains hidden or 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
{"40003":{"longitude":-85.0651,"postalCode":"40003","placeName":"Bagdad","latitude":38.2608},"40004":{"longitude":-85.4613,"postalCode":"40004","placeName":"Bardstown","latitude":37.8084},"40006":{"longitude":-85.3133,"postalCode":"40006","placeName":"Bedford","latitude":38.5864},"40007":{"longitude":-85.0169,"postalCode":"40007","placeName":"Bethlehem","latitude":38.4529},"40008":{"longitude":-85.2862,"postalCode":"40008","placeName":"Bloomfield","latitude":37.908},"40009":{"longitude":-85.1436,"postalCode":"40009","placeName":"Bradfordsville","latitude":37.4662},"40010":{"longitude":-85.4507,"postalCode":"40010","placeName":"Buckner","latitude":38.3735},"40011":{"longitude":-85.1611,"postalCode":"40011","placeName":"Campbellsburg","latitude":38.5231},"40012":{"longitude":-85.2015,"postalCode":"40012","placeName":"Chaplin","latitude":37.9025},"40013":{"longitude":-85.4658,"postalCode":"40013","placeName":"Coxs Creek","latitude":37.9125},"40014":{"longitude":-85.461,"postalCode":"40014","placeName":"Crestwood |
NewerOlder