For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.
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
| '' | 'X' | 'BIDY' | 'StateF_NewSN_Type' | 'StateF_SN' | 'State' | 'State_FIPS' | 'FHWARegionCode' | 'StateName' | 'year' | 'BridgeID' | 'StructureNumber' | 'InventoryRoute' | 'RecordType' | 'RouteSigningPrefix' | 'RoutePrefixName' | 'InterstateHwy' | 'USNumberedHwy' | 'StateHwy' | 'CountyHwy' | 'CityStreet' | 'FederalLandsRoad' | 'StateLandsRoad' | 'OtherRoad' | 'DesignatedLevelService' | 'DesignatedLevelServiceName' | 'Mainline' | 'Alternate' | 'Bypass' | 'Spur' | 'Business' | 'RampWyeConnector' | 'ServiceorUnclassified' | 'NoneServiceLevel' | 'RouteNumber' | 'DirectionalSuffix' | 'DirectionName' | 'NotApplicable' | 'North' | 'East' | 'South' | 'West' | 'HighwayAgencyDistrict' | 'CountyParishCode' | 'PlaceCode' | 'FeaturesIntersectTotal' | 'FeaturesIntersect' | 'CriticalFacilityIndicator' | 'FacilityCarriedbyStructure' | 'Location' | 'InventoryRteMinVertClear' | 'InventoryRteMinVertClear_decimal' | 'InventoryRteMinVertClear_Feet' | 'InventRteMinVertClear_NoRestrict' | 'KilometerPoint' | 'KilometerPoint_decimal' | 'BaseHighwayNetwork' | 'OnBaseHighwayNetwork' | 'Inv |
|---|
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 csv | |
| filename = 'E:/Desai_Jaison_ResearchFiles/From Server/NBI/Panel2.csv' | |
| header = [] | |
| val = {} | |
| with open(filename, 'r') as f: | |
| reader = csv.reader(f) |
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 sys, csv, os | |
| import json | |
| original = './data' | |
| new = './data/new' | |
| old = './updated' | |
| def stripp(x): |
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, csv, json | |
| location = './data' | |
| jsonFile = './helpers/change.json' | |
| counter = 0 | |
| #allRows = {} | |
| data = {} |
This file has been truncated, but you can view the full file.
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
| { | |
| "4012-9": "5938", | |
| "100000030217010-24": "100000030217013", | |
| "100000030363010-24": "100000030217014", | |
| "100000030271012-24": "100000030271013", | |
| "100000030271011-24": "100000030271014", | |
| "100000120062011-24": "100000120062010", | |
| "19307H00020B010-26": "1895", | |
| "1900P01-34": "3461001", | |
| "M085770-34": "M08577N", |
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
| Processing csv file: 1992.csv | |
| Processed file 1992.csv with 666207 lines | |
| Processing csv file: 1998.csv | |
| Processed file 1998.csv with 683861 lines | |
| Processing csv file: 1999.csv | |
| Processed file 1999.csv with 688416 lines | |
| Processing csv file: 2000.csv | |
| Processed file 2000.csv with 691060 lines | |
| Processing csv file: 2001.csv | |
| Processed file 2001.csv with 694941 lines |
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
| Enter year1992,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012 | |
| ------------------------Year 1992------------------------ | |
| Processed file ./updated/1992.csv with 666207 lines | |
| Processed file ./data/new/1992new.csv with 666207 lines | |
| Total ids in new 666206 | |
| Total ids in old 666206 | |
| Same or not? [False, False] | |
| Ids in new that are not in old 33519 | |
| Processed file ./data/1992.csv with 666207 lines |
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 sys, csv, json | |
| #arguments = sys.argv | |
| #if (not len(arguments) > 1): | |
| # print("No file specified") | |
| # quit() | |
| #filename = arguments[1] |
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 the useful libraries. | |
| import numpy | |
| import pandas | |
| import seaborn | |
| import matplotlib.pyplot | |
| %matplotlib inline | |
| # Load the data set |