content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
def mergesort(m): if len(m) == 1: return m mid = len(m) // 2 left = m[:mid] right = m[mid:] left = mergesort(left) right = mergesort(right) return merge(left, right) def merge(left, right): result = [] while len(left) > 0 or len(right) > 0: if len(left) > 0 and len(right) > 0: if left[0] <= right[0]: result.append(left.pop(0)) else: result.append(right.pop(0)) elif len(left) > 0: result.append(left.pop(0)) elif len(right) > 0: result.append(right.pop(0)) return result
def mergesort(m): if len(m) == 1: return m mid = len(m) // 2 left = m[:mid] right = m[mid:] left = mergesort(left) right = mergesort(right) return merge(left, right) def merge(left, right): result = [] while len(left) > 0 or len(right) > 0: if len(left) > 0 and len(right) > 0: if left[0] <= right[0]: result.append(left.pop(0)) else: result.append(right.pop(0)) elif len(left) > 0: result.append(left.pop(0)) elif len(right) > 0: result.append(right.pop(0)) return result
# One can use pretty unicode characters here ('\u25EF', '\u2A09'), if their terminal emulator supports it PLAYER_TOKENS = ('O', 'X') TOKEN_EMPTY = '-' VALID_TOKENS = PLAYER_TOKENS + tuple(TOKEN_EMPTY)
player_tokens = ('O', 'X') token_empty = '-' valid_tokens = PLAYER_TOKENS + tuple(TOKEN_EMPTY)
num = 253 total = 0 while(num != 0): rem = num % 10 total = total + rem num = num // 10 print("Sum of number's digit:", total)
num = 253 total = 0 while num != 0: rem = num % 10 total = total + rem num = num // 10 print("Sum of number's digit:", total)
def run_xnli(model): pass
def run_xnli(model): pass
# Challenge 2.3 # Favourite Team # ================= games = ["Manchester Utd v Liverpool", "Liverpool v Southampton", "Liverpool v Stoke", "Chelsea v Liverpool"]
games = ['Manchester Utd v Liverpool', 'Liverpool v Southampton', 'Liverpool v Stoke', 'Chelsea v Liverpool']
HOST = "Enter your host details" USERNAME ="Enter your username" PASSWORD="Enter your password" #PASSWORD="" PORT = 22 TIMEOUT = 10 PKEY = "Enter your key filename here" #Sample commands to execute(Add your commands here) COMMANDS = ['ls;mkdir sample']
host = 'Enter your host details' username = 'Enter your username' password = 'Enter your password' port = 22 timeout = 10 pkey = 'Enter your key filename here' commands = ['ls;mkdir sample']
# # PySNMP MIB module CISCO-WAN-ANNOUNCEMENT-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-WAN-ANNOUNCEMENT-MIB # Produced by pysmi-0.3.4 at Wed May 1 12:18:45 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # ObjectIdentifier, OctetString, Integer = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "OctetString", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueRangeConstraint, ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "ConstraintsUnion", "SingleValueConstraint", "ConstraintsIntersection", "ValueSizeConstraint") ciscoWan, = mibBuilder.importSymbols("CISCOWAN-SMI", "ciscoWan") ModuleCompliance, ObjectGroup, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "ObjectGroup", "NotificationGroup") MibScalar, MibTable, MibTableRow, MibTableColumn, Gauge32, Counter64, Counter32, IpAddress, Unsigned32, MibIdentifier, NotificationType, Integer32, TimeTicks, Bits, iso, ModuleIdentity, ObjectIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Gauge32", "Counter64", "Counter32", "IpAddress", "Unsigned32", "MibIdentifier", "NotificationType", "Integer32", "TimeTicks", "Bits", "iso", "ModuleIdentity", "ObjectIdentity") DisplayString, RowStatus, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "RowStatus", "TextualConvention") ciscoWanAnnouncementMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 351, 150, 25)) ciscoWanAnnouncementMIB.setRevisions(('2003-12-22 00:00', '2001-12-26 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: ciscoWanAnnouncementMIB.setRevisionsDescriptions(('Update with description changes from review.', ' Initial draft. Created new Media Gateway Card Announcement Group ',)) if mibBuilder.loadTexts: ciscoWanAnnouncementMIB.setLastUpdated('200312220000Z') if mibBuilder.loadTexts: ciscoWanAnnouncementMIB.setOrganization('Cisco Systems, Inc.') if mibBuilder.loadTexts: ciscoWanAnnouncementMIB.setContactInfo(' Cisco Systems Customer Service Postal: 170 W Tasman Drive San Jose, CA 95134 USA Tel: +1 800 553-NETS E-mail: cs-vism@cisco.com') if mibBuilder.loadTexts: ciscoWanAnnouncementMIB.setDescription("The MIB module is defined to configure the Announcements feature on the Media Gateway Card. The Media Gateway Card will have the capability to play pre-recorded local announcements in switched VoIP solutions only. Under the control of a call agent, announcements can be played in either direction over existing connections (calls) or towards the Time Division Multiplexed (TDM) network on a TDM endpoint that is terminated on the the Media Gateway Card. A large number of different announcements may be cached on the Media Gateway Card for immediate play out. A persistent announcement store, called the Announcement file server, will exist in the packet network and hold all the announcements in the network. Announcements will be downloaded on demand as announcement files from the configured announcement store. Downloaded announcement files will be stored on the Media Gateway Card as either 'permanent' or 'dynamic' announcement files. Permanent files on the Media Gateway Card are exempt from being refreshed, replaced, or removed without explicit provisioning actions. Dynamic announcement files will not persist across resets. Permanent announcement files will be reloaded, if possible, following a reset. Dynamic announcement files are automatically 'aged'. 'Aged' files are re-fetched from the Announcement file server. Dynamic Announcement files can be replaced on the Media Gateway Card if the Announcement memory on the card is full and additional Announcement files are to be downloaded. The file(s) to be replaced will be determined according to some Least Recently Used(LRU) algorithm. Announcements can be played over established connections and unconnected TDM endpoints in any encoding supported by the Media Gateway Card in its current configuration. Announcement files must be encoded in G.729a to be played on G.729ab connections or, if G.729ab has been chosen as the preferred codec, unconnected endpoints. The Announcement file server will reside on an IP network reachable from the Media Gateway Card using TFTP. The user will configure the Announcement file server node name on the the Media Gateway Card. The Announcement file server will have a 'main' file directory for Announcements. If the Announcement prefix path is configured to begin with a '/' then the directory is absolute. If the prefix path is configured to begin without a '/' then it will be relative to the default TFTP server directory. If no prefix path is configured then the Announcement 'main' directory and the TFTP default directory will be the same. The user must configure subdirectories within the main Announcement directory for each encoding that Announcements may be played in. These subdirectories must be of the following names: 'g711u', 'g711a', 'g726_40k', 'g726_32k', 'g726_24k', 'g726_16k', 'g729_a', 'g7231_high_rate', 'g7231_a_high_rate', 'g7231_low_rate', 'g7231_a_low_rate'. The Media Gateway Card maintains an Announcement cache in resident memory. The cache is populated on demand with dynamic files or provisioned with permanent files. That is to say that when an Announcement is requested to be played it will first be retrieved from the Announcement file server and placed in the on-board Announcement cache. Subsequent requests for the same Announcement will not require retrieval of the Announcement file from the Announcement file server. Note that an Announcement in one encoding is a different file than the same Announcement in a different encoding. The 'Announcement aging' policy is provisionable for dynamic files. Once a dynamic Announcement has 'aged' in the on-board cache it will be 'refreshed' by being retrieved again from the Announcement file server. The age time determines the maximum time before an updated Announcement file is automatically propagated to the card. Shorter age times will result in more frequent file server access. Changing the 'age' time does not affect the age times of dynamic Announcement files currently loaded. However, once these files are refreshed, they will then use the new 'age' time. Announcements may also be provisioned as 'permanent'. A permanent Announcement will be fetched from the Announcement file server and 'frozen' in the Media Gateway Card Announcement cache. Permanent Announcements will be excluded from aging (and being automatically refreshed) and excluded from being replaced if the Announcement cache becomes full. Permanent Announcements can only be removed from the cache explicitly by user through command line interface or through a Network Manager. If the Media Gateway Card is reset, permanent Announcements will be re-fetched from the Announcement file server as soon as the card becomes active. The Announcement encoding must be specified when provisioning permanent Announcements. ") cwAnnounceGrpMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 351, 150, 25, 1)) cwAnnounceGeneric = MibIdentifier((1, 3, 6, 1, 4, 1, 351, 150, 25, 1, 1)) cwAnnounceControlGrp = MibIdentifier((1, 3, 6, 1, 4, 1, 351, 150, 25, 1, 1, 1)) cwAnnounceTableGrp = MibIdentifier((1, 3, 6, 1, 4, 1, 351, 150, 25, 1, 1, 2)) class AnnCodecType(TextualConvention, Integer32): description = "This textual convention describes the Codec Type. The Announcement MIBs has two separate but identical objects which have the same structure for codec type, the scalar control group and the cwAnnounceTable. Ref : ITU-T Series G: G.711 for 'g711u' and 'g711a'. Ref : ITU-T Series G: G.726 for 'g726r32000', 'g726r16000', 'g726r24000', 'g726r40000'. Ref : ITU-T Series G: G.729 for 'g729a' and 'g729ab'. Ref : ITU-T Series G: G.723.1 for 'g723h', 'g723ah', 'g723l', 'g723al'. " status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 7, 8, 9, 11, 12, 13, 14)) namedValues = NamedValues(("g711u", 1), ("g711a", 2), ("g726r32000", 3), ("g729a", 4), ("g729ab", 5), ("g726r16000", 7), ("g726r24000", 8), ("g726r40000", 9), ("g723h", 11), ("g723ah", 12), ("g723l", 13), ("g723al", 14)) cwAnnMaximumSize = MibScalar((1, 3, 6, 1, 4, 1, 351, 150, 25, 1, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: cwAnnMaximumSize.setStatus('current') if mibBuilder.loadTexts: cwAnnMaximumSize.setDescription('This object records the maximum size of the Announcement table. This number consists of the maximum number of Announcement file names that may be kept on the Media Gateway Card. ') cwAnnFileServerName = MibScalar((1, 3, 6, 1, 4, 1, 351, 150, 25, 1, 1, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255)).clone(' ')).setMaxAccess("readwrite") if mibBuilder.loadTexts: cwAnnFileServerName.setStatus('current') if mibBuilder.loadTexts: cwAnnFileServerName.setDescription("This object records the name of the Announcement file server. The individual characters in this name may be alphanumeric characters, forward slashes, backward slashes, periods, dashes, and underscores, but no embedded spaces. Also, the last character of the name must not be a dash or a forward slash. The default value for this MIB object is a 'null'. If the Announcement file server name is not configured, Announcements cannot be downloaded. The 'null' value of this field is a single space character, which may be set to this value by setting this MIB object to the single character space string (' '). Alternatively, for computing systems that cannot handle single character space strings, the single character ('_') underscore string may be used as an alternative 'null' value, which would then be converted internally to the single character space string. Before the Announcement file server name may be successfully configured, the name must first be added to the list of domain names (mgDomainName) contained in the mgDomainNameTable(defined in CISCO-WAN-MG-MIB MIB). If the domain is configured for internal resolution, then the file server name must be asssigned an IP address to be put in the mgcResolutionTable(defined in CISCO-WAN-MG-MIB MIB).") cwAnnAgeTime = MibScalar((1, 3, 6, 1, 4, 1, 351, 150, 25, 1, 1, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647)).clone(10080)).setUnits('minutes').setMaxAccess("readwrite") if mibBuilder.loadTexts: cwAnnAgeTime.setStatus('current') if mibBuilder.loadTexts: cwAnnAgeTime.setDescription("This object records the time in minutes for a dynamic Announcement file in the cache to age. The Age time is the configurable number of minutes before a dynamic Announcement file in the Media Gateway Card Announcement cache will be invalidated and refreshed from the Announcement file server. An Announcement file starts 'aging' as soon as it is brought into the cache from the file server. Zero (0) time specifies that the age time is infinite, so that no aging will occur. But, unlike a permanent file, a file with aging of 0 may be replaced.") cwAnnPreferenceCodec = MibScalar((1, 3, 6, 1, 4, 1, 351, 150, 25, 1, 1, 1, 4), AnnCodecType()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cwAnnPreferenceCodec.setStatus('current') if mibBuilder.loadTexts: cwAnnPreferenceCodec.setDescription(" This object records the codec to be used for playing Announcements on an unconnected TDM endpoint. The default will be 'g711u' for a T1 Media Gateway Card, or will be 'g711a' for an E1 Media Gateway Card. ") cwAnnPrefixPath = MibScalar((1, 3, 6, 1, 4, 1, 351, 150, 25, 1, 1, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255)).clone(' ')).setMaxAccess("readwrite") if mibBuilder.loadTexts: cwAnnPrefixPath.setStatus('current') if mibBuilder.loadTexts: cwAnnPrefixPath.setDescription("This object records the directory path under the default TFTP directory in the Announcement File server for announcement files. The purpose of this MIB object is to specify the 'main' directory for Announcements if it is to be different than the default TFTP directory. The individual characters in this name may be alphanumeric characters, forward slashes, backward slashes, periods, dashes, and underscores, but no embedded spaces. Also, the last character of the name must not be a dash or a forward slash. If this MIB object is a 'null' value it will not cause any directory path string to be inserted with the cwAnnFileName MIB object. The 'null' value of this field is a single space character, which may be set to this value by setting this MIB object to the single character space string (' '), or alternatively, for computing systems that cannot handle single character space strings, to the single character ('_') underscore string, which will then be converted internally to the single character space string.") cwAnnReqTimeout = MibScalar((1, 3, 6, 1, 4, 1, 351, 150, 25, 1, 1, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647)).clone(5)).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: cwAnnReqTimeout.setStatus('current') if mibBuilder.loadTexts: cwAnnReqTimeout.setDescription(' This object records the time for a dynamic play Announcement request to be serviced. If the Announcement subsystem cannot start playing the Announcement within cwAnnReqTimeout seconds since the request was received, the play request will be aborted. Zero (0) time specifies that the timeout time is infinite, so that no timeout will occur.') cwAnnounceTable = MibTable((1, 3, 6, 1, 4, 1, 351, 150, 25, 1, 1, 2, 1), ) if mibBuilder.loadTexts: cwAnnounceTable.setStatus('current') if mibBuilder.loadTexts: cwAnnounceTable.setDescription('This table contains configuration information about different permanent Announcements that are stored on the Media Gateway Card. This table may contain up to the maximum number of permanent Announcement file names which is given by the value of cwAnnMaximumSize. ') cwAnnounceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 351, 150, 25, 1, 1, 2, 1, 1), ).setIndexNames((0, "CISCO-WAN-ANNOUNCEMENT-MIB", "cwAnnounceNumber")) if mibBuilder.loadTexts: cwAnnounceEntry.setStatus('current') if mibBuilder.loadTexts: cwAnnounceEntry.setDescription('An entry in this table consists of configuration information for a specific Announcement file name. ') cwAnnounceNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 351, 150, 25, 1, 1, 2, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))) if mibBuilder.loadTexts: cwAnnounceNumber.setStatus('current') if mibBuilder.loadTexts: cwAnnounceNumber.setDescription('This object serves as index to this table. ') cwAnnFileStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 351, 150, 25, 1, 1, 2, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("loaded", 1), ("loading", 2), ("invalidFile", 3), ("loadFailed", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cwAnnFileStatus.setStatus('current') if mibBuilder.loadTexts: cwAnnFileStatus.setDescription("This attribute specifies the status of this entry regarding to the permanent Announcement file name in cwAnnFileName MIB object: 'loaded(1)': successfully downloaded permanent file. 'loading(2)': in process of downloading a permanent file. 'invalidFile(3)': file on File server is too large or corrupted. 'loadFailed(4)': timeout when trying to download a permanent file. When this entry is created with a valid permanent Announcement file name in the cwAnnFileName MIB object, this permanent status is set to 'loading(3)' while background activities attempt to download the permanent file from the Announcement FTP server. If this attempt is successful, the permanent status is set to 'loaded(3)', but if this process fails the permanent status is set to one either 'invalidFile(3)', or 'loadFailed(4)'. Once an entry is loaded, if a subsequent card reset occurs the Media Gateway Card will attempt to restore all of the configuration information by doing its normal download of the latest MIB data base from the PXM (Processor Switch Module) hard disk, set all 'loaded (2)' MIB objects to 'loading (3)', and then do an background process to retrieve all of the Announcement files from the Announcement file server, since this information is not contained in the PXM. If this retrieval of the Announcement files succeeds then this MIB object will be set back to 'loaded (2)'. If this file retrieval does not succeed, then this MIB object will be set to one of: 'invalidFile(3)', or 'loadFailed(4)'. ") cwAnnFileName = MibTableColumn((1, 3, 6, 1, 4, 1, 351, 150, 25, 1, 1, 2, 1, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readcreate") if mibBuilder.loadTexts: cwAnnFileName.setStatus('current') if mibBuilder.loadTexts: cwAnnFileName.setDescription("This is the name of a valid Announcement file which has been stored in the Announcement table as a permanent Announcement File name. This file name may include path or subdirectory information. The individual characters in this name may be alphanumeric characters, forward slashes, backward slashes, periods, dashes, and underscores, but no embedded spaces. Also, the last character of the name must not be a dash or a forward slash. However, single underscore character ('_') is considered a NULL string and should not consist cwAnnFileName name. ") cwAnnFileCodec = MibTableColumn((1, 3, 6, 1, 4, 1, 351, 150, 25, 1, 1, 2, 1, 1, 4), AnnCodecType()).setMaxAccess("readcreate") if mibBuilder.loadTexts: cwAnnFileCodec.setStatus('current') if mibBuilder.loadTexts: cwAnnFileCodec.setDescription('This object records the codec associated with a specific Announcdement file. The default will be the value specified in the cwAnnPreferenceCodec MIB object above.') cwAnnRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 351, 150, 25, 1, 1, 2, 1, 1, 5), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: cwAnnRowStatus.setStatus('current') if mibBuilder.loadTexts: cwAnnRowStatus.setDescription(" Once a row is created, modification is not allowed on the row. cwAnnFileName MIB object is the mandatory parameter for creating an entry in this table. To delete an Announcement file entry, the RowStaus will be set to 'destroy'. ") cwAnnounceNotificationPrefix = MibIdentifier((1, 3, 6, 1, 4, 1, 351, 150, 25, 2)) cwAnnounceNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 351, 150, 25, 2, 0)) cwAnnounceMIBConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 351, 150, 25, 3)) cwAnnounceMIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 351, 150, 25, 3, 1)) cwAnnounceMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 351, 150, 25, 3, 2)) announceMIBCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 351, 150, 25, 3, 1, 1)).setObjects(("CISCO-WAN-ANNOUNCEMENT-MIB", "cwAnnounceControlGroup"), ("CISCO-WAN-ANNOUNCEMENT-MIB", "cwAnnounceTableGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): announceMIBCompliance = announceMIBCompliance.setStatus('current') if mibBuilder.loadTexts: announceMIBCompliance.setDescription(' The compliance statement for the Media Gateway Card Announcement group which implements cwAnnounceGeneric MIB.') cwAnnounceControlGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 351, 150, 25, 3, 2, 1)).setObjects(("CISCO-WAN-ANNOUNCEMENT-MIB", "cwAnnMaximumSize"), ("CISCO-WAN-ANNOUNCEMENT-MIB", "cwAnnFileServerName"), ("CISCO-WAN-ANNOUNCEMENT-MIB", "cwAnnAgeTime"), ("CISCO-WAN-ANNOUNCEMENT-MIB", "cwAnnPreferenceCodec"), ("CISCO-WAN-ANNOUNCEMENT-MIB", "cwAnnPrefixPath"), ("CISCO-WAN-ANNOUNCEMENT-MIB", "cwAnnReqTimeout")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cwAnnounceControlGroup = cwAnnounceControlGroup.setStatus('current') if mibBuilder.loadTexts: cwAnnounceControlGroup.setDescription('This group contains objects related to the control of the Media Gateway Card Announcement Table. ') cwAnnounceTableGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 351, 150, 25, 3, 2, 2)).setObjects(("CISCO-WAN-ANNOUNCEMENT-MIB", "cwAnnFileStatus"), ("CISCO-WAN-ANNOUNCEMENT-MIB", "cwAnnFileName"), ("CISCO-WAN-ANNOUNCEMENT-MIB", "cwAnnFileCodec"), ("CISCO-WAN-ANNOUNCEMENT-MIB", "cwAnnRowStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cwAnnounceTableGroup = cwAnnounceTableGroup.setStatus('current') if mibBuilder.loadTexts: cwAnnounceTableGroup.setDescription('This group contains objects related to configuration of Media Gateway Card Announcement Table. ') mibBuilder.exportSymbols("CISCO-WAN-ANNOUNCEMENT-MIB", announceMIBCompliance=announceMIBCompliance, cwAnnounceNumber=cwAnnounceNumber, cwAnnounceControlGrp=cwAnnounceControlGrp, cwAnnMaximumSize=cwAnnMaximumSize, cwAnnPreferenceCodec=cwAnnPreferenceCodec, cwAnnounceTable=cwAnnounceTable, cwAnnounceMIBCompliances=cwAnnounceMIBCompliances, PYSNMP_MODULE_ID=ciscoWanAnnouncementMIB, cwAnnounceMIBConformance=cwAnnounceMIBConformance, cwAnnounceNotificationPrefix=cwAnnounceNotificationPrefix, cwAnnounceTableGrp=cwAnnounceTableGrp, cwAnnounceControlGroup=cwAnnounceControlGroup, ciscoWanAnnouncementMIB=ciscoWanAnnouncementMIB, cwAnnFileCodec=cwAnnFileCodec, AnnCodecType=AnnCodecType, cwAnnounceGeneric=cwAnnounceGeneric, cwAnnounceGrpMIBObjects=cwAnnounceGrpMIBObjects, cwAnnPrefixPath=cwAnnPrefixPath, cwAnnFileServerName=cwAnnFileServerName, cwAnnAgeTime=cwAnnAgeTime, cwAnnounceEntry=cwAnnounceEntry, cwAnnReqTimeout=cwAnnReqTimeout, cwAnnFileStatus=cwAnnFileStatus, cwAnnounceTableGroup=cwAnnounceTableGroup, cwAnnounceNotifications=cwAnnounceNotifications, cwAnnFileName=cwAnnFileName, cwAnnounceMIBGroups=cwAnnounceMIBGroups, cwAnnRowStatus=cwAnnRowStatus)
(object_identifier, octet_string, integer) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'OctetString', 'Integer') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_range_constraint, constraints_union, single_value_constraint, constraints_intersection, value_size_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueRangeConstraint', 'ConstraintsUnion', 'SingleValueConstraint', 'ConstraintsIntersection', 'ValueSizeConstraint') (cisco_wan,) = mibBuilder.importSymbols('CISCOWAN-SMI', 'ciscoWan') (module_compliance, object_group, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'ObjectGroup', 'NotificationGroup') (mib_scalar, mib_table, mib_table_row, mib_table_column, gauge32, counter64, counter32, ip_address, unsigned32, mib_identifier, notification_type, integer32, time_ticks, bits, iso, module_identity, object_identity) = mibBuilder.importSymbols('SNMPv2-SMI', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Gauge32', 'Counter64', 'Counter32', 'IpAddress', 'Unsigned32', 'MibIdentifier', 'NotificationType', 'Integer32', 'TimeTicks', 'Bits', 'iso', 'ModuleIdentity', 'ObjectIdentity') (display_string, row_status, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'RowStatus', 'TextualConvention') cisco_wan_announcement_mib = module_identity((1, 3, 6, 1, 4, 1, 351, 150, 25)) ciscoWanAnnouncementMIB.setRevisions(('2003-12-22 00:00', '2001-12-26 00:00')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: ciscoWanAnnouncementMIB.setRevisionsDescriptions(('Update with description changes from review.', ' Initial draft. Created new Media Gateway Card Announcement Group ')) if mibBuilder.loadTexts: ciscoWanAnnouncementMIB.setLastUpdated('200312220000Z') if mibBuilder.loadTexts: ciscoWanAnnouncementMIB.setOrganization('Cisco Systems, Inc.') if mibBuilder.loadTexts: ciscoWanAnnouncementMIB.setContactInfo(' Cisco Systems Customer Service Postal: 170 W Tasman Drive San Jose, CA 95134 USA Tel: +1 800 553-NETS E-mail: cs-vism@cisco.com') if mibBuilder.loadTexts: ciscoWanAnnouncementMIB.setDescription("The MIB module is defined to configure the Announcements feature on the Media Gateway Card. The Media Gateway Card will have the capability to play pre-recorded local announcements in switched VoIP solutions only. Under the control of a call agent, announcements can be played in either direction over existing connections (calls) or towards the Time Division Multiplexed (TDM) network on a TDM endpoint that is terminated on the the Media Gateway Card. A large number of different announcements may be cached on the Media Gateway Card for immediate play out. A persistent announcement store, called the Announcement file server, will exist in the packet network and hold all the announcements in the network. Announcements will be downloaded on demand as announcement files from the configured announcement store. Downloaded announcement files will be stored on the Media Gateway Card as either 'permanent' or 'dynamic' announcement files. Permanent files on the Media Gateway Card are exempt from being refreshed, replaced, or removed without explicit provisioning actions. Dynamic announcement files will not persist across resets. Permanent announcement files will be reloaded, if possible, following a reset. Dynamic announcement files are automatically 'aged'. 'Aged' files are re-fetched from the Announcement file server. Dynamic Announcement files can be replaced on the Media Gateway Card if the Announcement memory on the card is full and additional Announcement files are to be downloaded. The file(s) to be replaced will be determined according to some Least Recently Used(LRU) algorithm. Announcements can be played over established connections and unconnected TDM endpoints in any encoding supported by the Media Gateway Card in its current configuration. Announcement files must be encoded in G.729a to be played on G.729ab connections or, if G.729ab has been chosen as the preferred codec, unconnected endpoints. The Announcement file server will reside on an IP network reachable from the Media Gateway Card using TFTP. The user will configure the Announcement file server node name on the the Media Gateway Card. The Announcement file server will have a 'main' file directory for Announcements. If the Announcement prefix path is configured to begin with a '/' then the directory is absolute. If the prefix path is configured to begin without a '/' then it will be relative to the default TFTP server directory. If no prefix path is configured then the Announcement 'main' directory and the TFTP default directory will be the same. The user must configure subdirectories within the main Announcement directory for each encoding that Announcements may be played in. These subdirectories must be of the following names: 'g711u', 'g711a', 'g726_40k', 'g726_32k', 'g726_24k', 'g726_16k', 'g729_a', 'g7231_high_rate', 'g7231_a_high_rate', 'g7231_low_rate', 'g7231_a_low_rate'. The Media Gateway Card maintains an Announcement cache in resident memory. The cache is populated on demand with dynamic files or provisioned with permanent files. That is to say that when an Announcement is requested to be played it will first be retrieved from the Announcement file server and placed in the on-board Announcement cache. Subsequent requests for the same Announcement will not require retrieval of the Announcement file from the Announcement file server. Note that an Announcement in one encoding is a different file than the same Announcement in a different encoding. The 'Announcement aging' policy is provisionable for dynamic files. Once a dynamic Announcement has 'aged' in the on-board cache it will be 'refreshed' by being retrieved again from the Announcement file server. The age time determines the maximum time before an updated Announcement file is automatically propagated to the card. Shorter age times will result in more frequent file server access. Changing the 'age' time does not affect the age times of dynamic Announcement files currently loaded. However, once these files are refreshed, they will then use the new 'age' time. Announcements may also be provisioned as 'permanent'. A permanent Announcement will be fetched from the Announcement file server and 'frozen' in the Media Gateway Card Announcement cache. Permanent Announcements will be excluded from aging (and being automatically refreshed) and excluded from being replaced if the Announcement cache becomes full. Permanent Announcements can only be removed from the cache explicitly by user through command line interface or through a Network Manager. If the Media Gateway Card is reset, permanent Announcements will be re-fetched from the Announcement file server as soon as the card becomes active. The Announcement encoding must be specified when provisioning permanent Announcements. ") cw_announce_grp_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 351, 150, 25, 1)) cw_announce_generic = mib_identifier((1, 3, 6, 1, 4, 1, 351, 150, 25, 1, 1)) cw_announce_control_grp = mib_identifier((1, 3, 6, 1, 4, 1, 351, 150, 25, 1, 1, 1)) cw_announce_table_grp = mib_identifier((1, 3, 6, 1, 4, 1, 351, 150, 25, 1, 1, 2)) class Anncodectype(TextualConvention, Integer32): description = "This textual convention describes the Codec Type. The Announcement MIBs has two separate but identical objects which have the same structure for codec type, the scalar control group and the cwAnnounceTable. Ref : ITU-T Series G: G.711 for 'g711u' and 'g711a'. Ref : ITU-T Series G: G.726 for 'g726r32000', 'g726r16000', 'g726r24000', 'g726r40000'. Ref : ITU-T Series G: G.729 for 'g729a' and 'g729ab'. Ref : ITU-T Series G: G.723.1 for 'g723h', 'g723ah', 'g723l', 'g723al'. " status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4, 5, 7, 8, 9, 11, 12, 13, 14)) named_values = named_values(('g711u', 1), ('g711a', 2), ('g726r32000', 3), ('g729a', 4), ('g729ab', 5), ('g726r16000', 7), ('g726r24000', 8), ('g726r40000', 9), ('g723h', 11), ('g723ah', 12), ('g723l', 13), ('g723al', 14)) cw_ann_maximum_size = mib_scalar((1, 3, 6, 1, 4, 1, 351, 150, 25, 1, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setMaxAccess('readonly') if mibBuilder.loadTexts: cwAnnMaximumSize.setStatus('current') if mibBuilder.loadTexts: cwAnnMaximumSize.setDescription('This object records the maximum size of the Announcement table. This number consists of the maximum number of Announcement file names that may be kept on the Media Gateway Card. ') cw_ann_file_server_name = mib_scalar((1, 3, 6, 1, 4, 1, 351, 150, 25, 1, 1, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 255)).clone(' ')).setMaxAccess('readwrite') if mibBuilder.loadTexts: cwAnnFileServerName.setStatus('current') if mibBuilder.loadTexts: cwAnnFileServerName.setDescription("This object records the name of the Announcement file server. The individual characters in this name may be alphanumeric characters, forward slashes, backward slashes, periods, dashes, and underscores, but no embedded spaces. Also, the last character of the name must not be a dash or a forward slash. The default value for this MIB object is a 'null'. If the Announcement file server name is not configured, Announcements cannot be downloaded. The 'null' value of this field is a single space character, which may be set to this value by setting this MIB object to the single character space string (' '). Alternatively, for computing systems that cannot handle single character space strings, the single character ('_') underscore string may be used as an alternative 'null' value, which would then be converted internally to the single character space string. Before the Announcement file server name may be successfully configured, the name must first be added to the list of domain names (mgDomainName) contained in the mgDomainNameTable(defined in CISCO-WAN-MG-MIB MIB). If the domain is configured for internal resolution, then the file server name must be asssigned an IP address to be put in the mgcResolutionTable(defined in CISCO-WAN-MG-MIB MIB).") cw_ann_age_time = mib_scalar((1, 3, 6, 1, 4, 1, 351, 150, 25, 1, 1, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647)).clone(10080)).setUnits('minutes').setMaxAccess('readwrite') if mibBuilder.loadTexts: cwAnnAgeTime.setStatus('current') if mibBuilder.loadTexts: cwAnnAgeTime.setDescription("This object records the time in minutes for a dynamic Announcement file in the cache to age. The Age time is the configurable number of minutes before a dynamic Announcement file in the Media Gateway Card Announcement cache will be invalidated and refreshed from the Announcement file server. An Announcement file starts 'aging' as soon as it is brought into the cache from the file server. Zero (0) time specifies that the age time is infinite, so that no aging will occur. But, unlike a permanent file, a file with aging of 0 may be replaced.") cw_ann_preference_codec = mib_scalar((1, 3, 6, 1, 4, 1, 351, 150, 25, 1, 1, 1, 4), ann_codec_type()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cwAnnPreferenceCodec.setStatus('current') if mibBuilder.loadTexts: cwAnnPreferenceCodec.setDescription(" This object records the codec to be used for playing Announcements on an unconnected TDM endpoint. The default will be 'g711u' for a T1 Media Gateway Card, or will be 'g711a' for an E1 Media Gateway Card. ") cw_ann_prefix_path = mib_scalar((1, 3, 6, 1, 4, 1, 351, 150, 25, 1, 1, 1, 5), display_string().subtype(subtypeSpec=value_size_constraint(0, 255)).clone(' ')).setMaxAccess('readwrite') if mibBuilder.loadTexts: cwAnnPrefixPath.setStatus('current') if mibBuilder.loadTexts: cwAnnPrefixPath.setDescription("This object records the directory path under the default TFTP directory in the Announcement File server for announcement files. The purpose of this MIB object is to specify the 'main' directory for Announcements if it is to be different than the default TFTP directory. The individual characters in this name may be alphanumeric characters, forward slashes, backward slashes, periods, dashes, and underscores, but no embedded spaces. Also, the last character of the name must not be a dash or a forward slash. If this MIB object is a 'null' value it will not cause any directory path string to be inserted with the cwAnnFileName MIB object. The 'null' value of this field is a single space character, which may be set to this value by setting this MIB object to the single character space string (' '), or alternatively, for computing systems that cannot handle single character space strings, to the single character ('_') underscore string, which will then be converted internally to the single character space string.") cw_ann_req_timeout = mib_scalar((1, 3, 6, 1, 4, 1, 351, 150, 25, 1, 1, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647)).clone(5)).setUnits('seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: cwAnnReqTimeout.setStatus('current') if mibBuilder.loadTexts: cwAnnReqTimeout.setDescription(' This object records the time for a dynamic play Announcement request to be serviced. If the Announcement subsystem cannot start playing the Announcement within cwAnnReqTimeout seconds since the request was received, the play request will be aborted. Zero (0) time specifies that the timeout time is infinite, so that no timeout will occur.') cw_announce_table = mib_table((1, 3, 6, 1, 4, 1, 351, 150, 25, 1, 1, 2, 1)) if mibBuilder.loadTexts: cwAnnounceTable.setStatus('current') if mibBuilder.loadTexts: cwAnnounceTable.setDescription('This table contains configuration information about different permanent Announcements that are stored on the Media Gateway Card. This table may contain up to the maximum number of permanent Announcement file names which is given by the value of cwAnnMaximumSize. ') cw_announce_entry = mib_table_row((1, 3, 6, 1, 4, 1, 351, 150, 25, 1, 1, 2, 1, 1)).setIndexNames((0, 'CISCO-WAN-ANNOUNCEMENT-MIB', 'cwAnnounceNumber')) if mibBuilder.loadTexts: cwAnnounceEntry.setStatus('current') if mibBuilder.loadTexts: cwAnnounceEntry.setDescription('An entry in this table consists of configuration information for a specific Announcement file name. ') cw_announce_number = mib_table_column((1, 3, 6, 1, 4, 1, 351, 150, 25, 1, 1, 2, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))) if mibBuilder.loadTexts: cwAnnounceNumber.setStatus('current') if mibBuilder.loadTexts: cwAnnounceNumber.setDescription('This object serves as index to this table. ') cw_ann_file_status = mib_table_column((1, 3, 6, 1, 4, 1, 351, 150, 25, 1, 1, 2, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('loaded', 1), ('loading', 2), ('invalidFile', 3), ('loadFailed', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: cwAnnFileStatus.setStatus('current') if mibBuilder.loadTexts: cwAnnFileStatus.setDescription("This attribute specifies the status of this entry regarding to the permanent Announcement file name in cwAnnFileName MIB object: 'loaded(1)': successfully downloaded permanent file. 'loading(2)': in process of downloading a permanent file. 'invalidFile(3)': file on File server is too large or corrupted. 'loadFailed(4)': timeout when trying to download a permanent file. When this entry is created with a valid permanent Announcement file name in the cwAnnFileName MIB object, this permanent status is set to 'loading(3)' while background activities attempt to download the permanent file from the Announcement FTP server. If this attempt is successful, the permanent status is set to 'loaded(3)', but if this process fails the permanent status is set to one either 'invalidFile(3)', or 'loadFailed(4)'. Once an entry is loaded, if a subsequent card reset occurs the Media Gateway Card will attempt to restore all of the configuration information by doing its normal download of the latest MIB data base from the PXM (Processor Switch Module) hard disk, set all 'loaded (2)' MIB objects to 'loading (3)', and then do an background process to retrieve all of the Announcement files from the Announcement file server, since this information is not contained in the PXM. If this retrieval of the Announcement files succeeds then this MIB object will be set back to 'loaded (2)'. If this file retrieval does not succeed, then this MIB object will be set to one of: 'invalidFile(3)', or 'loadFailed(4)'. ") cw_ann_file_name = mib_table_column((1, 3, 6, 1, 4, 1, 351, 150, 25, 1, 1, 2, 1, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readcreate') if mibBuilder.loadTexts: cwAnnFileName.setStatus('current') if mibBuilder.loadTexts: cwAnnFileName.setDescription("This is the name of a valid Announcement file which has been stored in the Announcement table as a permanent Announcement File name. This file name may include path or subdirectory information. The individual characters in this name may be alphanumeric characters, forward slashes, backward slashes, periods, dashes, and underscores, but no embedded spaces. Also, the last character of the name must not be a dash or a forward slash. However, single underscore character ('_') is considered a NULL string and should not consist cwAnnFileName name. ") cw_ann_file_codec = mib_table_column((1, 3, 6, 1, 4, 1, 351, 150, 25, 1, 1, 2, 1, 1, 4), ann_codec_type()).setMaxAccess('readcreate') if mibBuilder.loadTexts: cwAnnFileCodec.setStatus('current') if mibBuilder.loadTexts: cwAnnFileCodec.setDescription('This object records the codec associated with a specific Announcdement file. The default will be the value specified in the cwAnnPreferenceCodec MIB object above.') cw_ann_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 351, 150, 25, 1, 1, 2, 1, 1, 5), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: cwAnnRowStatus.setStatus('current') if mibBuilder.loadTexts: cwAnnRowStatus.setDescription(" Once a row is created, modification is not allowed on the row. cwAnnFileName MIB object is the mandatory parameter for creating an entry in this table. To delete an Announcement file entry, the RowStaus will be set to 'destroy'. ") cw_announce_notification_prefix = mib_identifier((1, 3, 6, 1, 4, 1, 351, 150, 25, 2)) cw_announce_notifications = mib_identifier((1, 3, 6, 1, 4, 1, 351, 150, 25, 2, 0)) cw_announce_mib_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 351, 150, 25, 3)) cw_announce_mib_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 351, 150, 25, 3, 1)) cw_announce_mib_groups = mib_identifier((1, 3, 6, 1, 4, 1, 351, 150, 25, 3, 2)) announce_mib_compliance = module_compliance((1, 3, 6, 1, 4, 1, 351, 150, 25, 3, 1, 1)).setObjects(('CISCO-WAN-ANNOUNCEMENT-MIB', 'cwAnnounceControlGroup'), ('CISCO-WAN-ANNOUNCEMENT-MIB', 'cwAnnounceTableGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): announce_mib_compliance = announceMIBCompliance.setStatus('current') if mibBuilder.loadTexts: announceMIBCompliance.setDescription(' The compliance statement for the Media Gateway Card Announcement group which implements cwAnnounceGeneric MIB.') cw_announce_control_group = object_group((1, 3, 6, 1, 4, 1, 351, 150, 25, 3, 2, 1)).setObjects(('CISCO-WAN-ANNOUNCEMENT-MIB', 'cwAnnMaximumSize'), ('CISCO-WAN-ANNOUNCEMENT-MIB', 'cwAnnFileServerName'), ('CISCO-WAN-ANNOUNCEMENT-MIB', 'cwAnnAgeTime'), ('CISCO-WAN-ANNOUNCEMENT-MIB', 'cwAnnPreferenceCodec'), ('CISCO-WAN-ANNOUNCEMENT-MIB', 'cwAnnPrefixPath'), ('CISCO-WAN-ANNOUNCEMENT-MIB', 'cwAnnReqTimeout')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cw_announce_control_group = cwAnnounceControlGroup.setStatus('current') if mibBuilder.loadTexts: cwAnnounceControlGroup.setDescription('This group contains objects related to the control of the Media Gateway Card Announcement Table. ') cw_announce_table_group = object_group((1, 3, 6, 1, 4, 1, 351, 150, 25, 3, 2, 2)).setObjects(('CISCO-WAN-ANNOUNCEMENT-MIB', 'cwAnnFileStatus'), ('CISCO-WAN-ANNOUNCEMENT-MIB', 'cwAnnFileName'), ('CISCO-WAN-ANNOUNCEMENT-MIB', 'cwAnnFileCodec'), ('CISCO-WAN-ANNOUNCEMENT-MIB', 'cwAnnRowStatus')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cw_announce_table_group = cwAnnounceTableGroup.setStatus('current') if mibBuilder.loadTexts: cwAnnounceTableGroup.setDescription('This group contains objects related to configuration of Media Gateway Card Announcement Table. ') mibBuilder.exportSymbols('CISCO-WAN-ANNOUNCEMENT-MIB', announceMIBCompliance=announceMIBCompliance, cwAnnounceNumber=cwAnnounceNumber, cwAnnounceControlGrp=cwAnnounceControlGrp, cwAnnMaximumSize=cwAnnMaximumSize, cwAnnPreferenceCodec=cwAnnPreferenceCodec, cwAnnounceTable=cwAnnounceTable, cwAnnounceMIBCompliances=cwAnnounceMIBCompliances, PYSNMP_MODULE_ID=ciscoWanAnnouncementMIB, cwAnnounceMIBConformance=cwAnnounceMIBConformance, cwAnnounceNotificationPrefix=cwAnnounceNotificationPrefix, cwAnnounceTableGrp=cwAnnounceTableGrp, cwAnnounceControlGroup=cwAnnounceControlGroup, ciscoWanAnnouncementMIB=ciscoWanAnnouncementMIB, cwAnnFileCodec=cwAnnFileCodec, AnnCodecType=AnnCodecType, cwAnnounceGeneric=cwAnnounceGeneric, cwAnnounceGrpMIBObjects=cwAnnounceGrpMIBObjects, cwAnnPrefixPath=cwAnnPrefixPath, cwAnnFileServerName=cwAnnFileServerName, cwAnnAgeTime=cwAnnAgeTime, cwAnnounceEntry=cwAnnounceEntry, cwAnnReqTimeout=cwAnnReqTimeout, cwAnnFileStatus=cwAnnFileStatus, cwAnnounceTableGroup=cwAnnounceTableGroup, cwAnnounceNotifications=cwAnnounceNotifications, cwAnnFileName=cwAnnFileName, cwAnnounceMIBGroups=cwAnnounceMIBGroups, cwAnnRowStatus=cwAnnRowStatus)
a = input('Enter a: ') b = input('Enter b: ') if a > b: a = int(a) b = int(b) while a <= b: print(a) a += 1 else: a = int(a) b = int(b) while b <= a: print(b) b += 1
a = input('Enter a: ') b = input('Enter b: ') if a > b: a = int(a) b = int(b) while a <= b: print(a) a += 1 else: a = int(a) b = int(b) while b <= a: print(b) b += 1
def Insertion_Sort_Recursive(arr, p, q): if(p==q): return Insertion_Sort_Recursive(arr, p, q-1) last = arr[q] j = q-1 while(j>=0 and arr[j] > last): arr[j+1] = arr[j] j = j-1 arr[j+1] = last array = [3, 6, 1, 7, 8, 2, 5, 4, 0, 9] Insertion_Sort_Recursive(array, 0, len(array)-1) print(array)
def insertion__sort__recursive(arr, p, q): if p == q: return insertion__sort__recursive(arr, p, q - 1) last = arr[q] j = q - 1 while j >= 0 and arr[j] > last: arr[j + 1] = arr[j] j = j - 1 arr[j + 1] = last array = [3, 6, 1, 7, 8, 2, 5, 4, 0, 9] insertion__sort__recursive(array, 0, len(array) - 1) print(array)
cells_conv_areas = [prop.convex_area for prop in properties] cells_orientation = [prop.orientation for prop in properties] print('Convex areas: {}'.format(cells_conv_areas)) print('Orientation: {}'.format(cells_orientation))
cells_conv_areas = [prop.convex_area for prop in properties] cells_orientation = [prop.orientation for prop in properties] print('Convex areas: {}'.format(cells_conv_areas)) print('Orientation: {}'.format(cells_orientation))
def part1(lines): x, y = 0, 0 for line in lines: movement, amount = line.split(' ') if movement == 'forward': x += int(amount) elif movement == 'down': y += int(amount) else: y -= int(amount) print(x * y) def part2(lines): x, y, aim = 0, 0, 0 for line in lines: movement, amount = line.split(' ') if movement == 'forward': x += int(amount) y += int(amount) * aim elif movement == 'down': aim += int(amount) else: aim -= int(amount) print(x * y) if __name__ == '__main__': with open('input.txt', 'r') as file: inputLines = file.readlines() part1(inputLines) part2(inputLines)
def part1(lines): (x, y) = (0, 0) for line in lines: (movement, amount) = line.split(' ') if movement == 'forward': x += int(amount) elif movement == 'down': y += int(amount) else: y -= int(amount) print(x * y) def part2(lines): (x, y, aim) = (0, 0, 0) for line in lines: (movement, amount) = line.split(' ') if movement == 'forward': x += int(amount) y += int(amount) * aim elif movement == 'down': aim += int(amount) else: aim -= int(amount) print(x * y) if __name__ == '__main__': with open('input.txt', 'r') as file: input_lines = file.readlines() part1(inputLines) part2(inputLines)
SUCCESS = 0 ERROR = 1 UNKNOWN_ERROR = 2 VIRTUALENV_NOT_FOUND = 3 PREVIOUS_BUILD_DIR_ERROR = 4 NO_MATCHES_FOUND = 23
success = 0 error = 1 unknown_error = 2 virtualenv_not_found = 3 previous_build_dir_error = 4 no_matches_found = 23
df_train = pd.get_dummies(df_train, columns=['Initial'], prefix='Initial') df_test = pd.get_dummies(df_test, columns=['Initial'], prefix='Initial') df_train.head() df_train = pd.get_dummies(df_train, columns=['Embarked'], prefix='Embarked') df_test = pd.get_dummies(df_test, columns=['Embarked'], prefix='Embarked')
df_train = pd.get_dummies(df_train, columns=['Initial'], prefix='Initial') df_test = pd.get_dummies(df_test, columns=['Initial'], prefix='Initial') df_train.head() df_train = pd.get_dummies(df_train, columns=['Embarked'], prefix='Embarked') df_test = pd.get_dummies(df_test, columns=['Embarked'], prefix='Embarked')
install_dependencies = ''' #!/bin/bash [COMMANDS] '''.strip()
install_dependencies = '\n#!/bin/bash\n\n[COMMANDS]\n'.strip()
MONGODB_DB = 'mongomail' MONGODB_HOST = 'localhost' MONGODB_PORT = 27017 MONGODB_USER = None MONGODB_PASSWORD = None MAIL_HOST = "0.0.0.0" MAIL_PORT = 8025 DEBUG = False
mongodb_db = 'mongomail' mongodb_host = 'localhost' mongodb_port = 27017 mongodb_user = None mongodb_password = None mail_host = '0.0.0.0' mail_port = 8025 debug = False
#import pprint class Node(): def __init__(self): self.name = None # node name self.data = None # data string self.attribute = None # attribute dictionary self.child = None # child node list self.parent = None # parent node self.is_contain = None # boolean, tag contain data self.open_tag_scope = None # open tag start, end position self.close_tag_scope = None # close tag start, end position self.data_scope = None # data start, end position self.is_traversed = False # boolean, using to change tree to dictionary def __str__(self): p = self.parent.name if not self.parent is None else "-" n = self.name return "name : {0}, parent : {1}".format(n,p) def summary(self): n = self.name p = "-" if self.parent is None else self.parent.name c = "-" if self.child is None else [children.name for children in self.child] d = "-" if self.data is None else self.data a = "-" if self.attribute is None else self.attribute return "name : {0}, parent : {1}, child : {2}, attribute : {3}, data : {4}".format(n,p,c,a,d) def parse_open_tag(self, stream, start, end): tag_start = stream.find("<", start, end) tag_end1, tag_end2 = stream.find(">", tag_start, end), stream.find("/>", tag_start, end) tag_end = -1 # check tag string if tag_start == -1 or (tag_end1 == -1 and tag_end2 == -1): return None # check tag form is contain data or not if (tag_end1 == -1 or tag_end2 == -1): self.is_contain = False if tag_end2 == -1 else True tag_end = tag_end1 + 1 if tag_end2 == -1 else tag_end2 + 2 else: self.is_contain = False if tag_end1 < tag_end2 else True tag_end = tag_end1 + 1 if tag_end1 < tag_end2 else tag_end2 + 2 # save the position self.open_tag_scope = (tag_start, tag_end) # get open tag data tag_data = stream[tag_start:tag_end] tag_data = tag_data.lstrip('<').rstrip('/>').rstrip('>') tag_data = tag_data.split(" ") # get name self.name = tag_data[0] tag_data = tag_data[1:] attribute_data = dict() # get attributes for d in tag_data: t = d.split("=") k, v = t[0], t[1] v = v.strip("\"") attribute_data["@" + k] = v if attribute_data: # dictionaory is not empty self.attribute = attribute_data return True def parse_close_tag(self, stream, end): if self.is_contain: self.close_tag_scope = (self.open_tag_scope[1], self.open_tag_scope[1]) return True tag_start = stream.find("</{0}>".format(self.name), self.open_tag_scope[1], end) if tag_start == -1: return None self.close_tag_scope = (tag_start, tag_start + len("</{0}>".format(self.name))) return True def parse_data(self, stream): if self.is_contain: self.data_scope = (self.open_tag_scope[1], self.open_tag_scope[1]) return (self.open_tag_scope[1], self.open_tag_scope[1]) self.data_scope = (self.open_tag_scope[1],self.close_tag_scope[0]) return (self.open_tag_scope[1],self.close_tag_scope[0]) def parse(file_path): stream = None root = Node() current = root #file_path = "D:\\lab\\xml_parser\\data\\test2.xml" try: with open(file_path, 'r', encoding='UTF8') as f: stream = f.read() if stream is None: raise Exception("file read except") except Exception as e: return None # parse XML tree try: if stream is None: raise Exception("file read error") # 1. check xml declaration, control parse range. declaration_start, declaration_end = stream.find("<?"), stream.find("?>") if declaration_start == -1 or declaration_end == -1: raise Exception("xml declaration not found") parse_start, parse_end = declaration_end + len("?>"), len(stream) while True: # 2. find open tag, close tag, data if current.parse_open_tag(stream, parse_start, parse_end) is None: raise Exception("open tag not found or parse open tag error") if current.parse_close_tag(stream, parse_end) is None: raise Exception("close tag not found") current.parse_data(stream) #print(current) # 3. find child node if stream.find("<", current.data_scope[0], current.data_scope[1]) != -1: # create child node child_node = Node() # save parent node address child_node.parent = current # save child node address if current.child is None: current.child = [] current.child.append(child_node) # change current node, change parse scope parse_start, parse_end = current.data_scope[0], current.data_scope[1] current = child_node continue else: # save data to current node current.data = stream[current.data_scope[0]:current.data_scope[1]].strip() # 4. find brother node if current.parent is None: break traverse_end = 0 for children in current.parent.child: if traverse_end < children.close_tag_scope[1]: traverse_end = children.close_tag_scope[1] # if not find any node, move to parent node and find parent's brother if stream.find("<", traverse_end, current.parent.data_scope[1]) == -1: # if parent node is none or ancestor node is none break the loop if current.parent is None or current.parent.parent is None: break # move to parent node current = current.parent # if can't find parent's brother continue if stream.find("<", current.close_tag_scope[1], current.parent.close_tag_scope[0]) == -1: break # change parse scope parse_start, parse_end = current.close_tag_scope[1], current.parent.close_tag_scope[0] # create parent brother parent_brother_node = Node() # save ancestor address parent_brother_node.parent = current.parent # save parent's brother address current.parent.child.append(parent_brother_node) current = parent_brother_node continue else: # change parse scope parse_start, parse_end = traverse_end, current.parent.data_scope[1] # create brother node brother_node = Node() # save parent node address brother_node.parent = current.parent # save child node address current.parent.child.append(brother_node) # change current node current = brother_node continue except Exception as e: print("parse except : {0}".format(e)) return None # tree to dictionary try: current = root result = dict() stack = [result] while True: # mark node current.is_traversed = True # dictionary already has key if current.name in stack[-1].keys(): # value type is already list if type(stack[-1][current.name]) == list: # case 1, tag has only data if not current.data is None and current.is_contain == False: stack[-1][current.name].append(current.data) # case 2, tag has only attributes elif not current.attribute is None: temp = dict() for k, v in current.attribute.items(): temp[k] = v stack[-1][current.name].append(temp) stack.append(temp) # case 3, no data in tag else: stack[-1][current.name].append(dict()) stack.append(temp) # value type is not list(dict) else: # save dictionary in list temp = [stack[-1][current.name]] # change dictionary to list stack[-1][current.name] = temp # case 1, tag has only data if not current.data is None and current.is_contain == False: stack[-1][current.name].append(current.data) # case 2, tag has only attributes elif not current.attribute is None: node_data = dict() for k, v in current.attribute.items(): node_data[k] = v stack[-1][current.name].append(node_data) stack.append(node_data) # case 3, no data in tag else: node_data = dict() stack[-1][current.name].append(node_data) stack.append(node_data) # dictionary has not key else: # case 1, tag has only data if not current.data is None and current.is_contain == False: stack[-1][current.name] = current.data # case 2, tag has only attributes elif not current.attribute is None: stack[-1][current.name] = dict() for k, v in current.attribute.items(): stack[-1][current.name][k] = v stack.append(stack[-1][current.name]) # case 3, no data in tag else: stack[-1][current.name] = dict() stack.append(stack[-1][current.name]) # print node summary #print(current.summary()) # check child if not current.child is None: child_flag = False for children in current.child: if not children.is_traversed: current = children child_flag = True break if child_flag: continue # check brother brother_flag = False while not current.parent is None: if not current.parent.child is None: for brother in current.parent.child: if not brother.is_traversed: current = brother brother_flag = True break if brother_flag: break else: current = current.parent stack.pop() if not brother_flag: break except Exception as e: print("convert except : {0}".format(e)) return None # pp = pprint.PrettyPrinter(indent=1) # pp.pprint(result) return result #parse("D:\\lab\\xml_parser\\data\\test2.xml")
class Node: def __init__(self): self.name = None self.data = None self.attribute = None self.child = None self.parent = None self.is_contain = None self.open_tag_scope = None self.close_tag_scope = None self.data_scope = None self.is_traversed = False def __str__(self): p = self.parent.name if not self.parent is None else '-' n = self.name return 'name : {0}, parent : {1}'.format(n, p) def summary(self): n = self.name p = '-' if self.parent is None else self.parent.name c = '-' if self.child is None else [children.name for children in self.child] d = '-' if self.data is None else self.data a = '-' if self.attribute is None else self.attribute return 'name : {0}, parent : {1}, child : {2}, attribute : {3}, data : {4}'.format(n, p, c, a, d) def parse_open_tag(self, stream, start, end): tag_start = stream.find('<', start, end) (tag_end1, tag_end2) = (stream.find('>', tag_start, end), stream.find('/>', tag_start, end)) tag_end = -1 if tag_start == -1 or (tag_end1 == -1 and tag_end2 == -1): return None if tag_end1 == -1 or tag_end2 == -1: self.is_contain = False if tag_end2 == -1 else True tag_end = tag_end1 + 1 if tag_end2 == -1 else tag_end2 + 2 else: self.is_contain = False if tag_end1 < tag_end2 else True tag_end = tag_end1 + 1 if tag_end1 < tag_end2 else tag_end2 + 2 self.open_tag_scope = (tag_start, tag_end) tag_data = stream[tag_start:tag_end] tag_data = tag_data.lstrip('<').rstrip('/>').rstrip('>') tag_data = tag_data.split(' ') self.name = tag_data[0] tag_data = tag_data[1:] attribute_data = dict() for d in tag_data: t = d.split('=') (k, v) = (t[0], t[1]) v = v.strip('"') attribute_data['@' + k] = v if attribute_data: self.attribute = attribute_data return True def parse_close_tag(self, stream, end): if self.is_contain: self.close_tag_scope = (self.open_tag_scope[1], self.open_tag_scope[1]) return True tag_start = stream.find('</{0}>'.format(self.name), self.open_tag_scope[1], end) if tag_start == -1: return None self.close_tag_scope = (tag_start, tag_start + len('</{0}>'.format(self.name))) return True def parse_data(self, stream): if self.is_contain: self.data_scope = (self.open_tag_scope[1], self.open_tag_scope[1]) return (self.open_tag_scope[1], self.open_tag_scope[1]) self.data_scope = (self.open_tag_scope[1], self.close_tag_scope[0]) return (self.open_tag_scope[1], self.close_tag_scope[0]) def parse(file_path): stream = None root = node() current = root try: with open(file_path, 'r', encoding='UTF8') as f: stream = f.read() if stream is None: raise exception('file read except') except Exception as e: return None try: if stream is None: raise exception('file read error') (declaration_start, declaration_end) = (stream.find('<?'), stream.find('?>')) if declaration_start == -1 or declaration_end == -1: raise exception('xml declaration not found') (parse_start, parse_end) = (declaration_end + len('?>'), len(stream)) while True: if current.parse_open_tag(stream, parse_start, parse_end) is None: raise exception('open tag not found or parse open tag error') if current.parse_close_tag(stream, parse_end) is None: raise exception('close tag not found') current.parse_data(stream) if stream.find('<', current.data_scope[0], current.data_scope[1]) != -1: child_node = node() child_node.parent = current if current.child is None: current.child = [] current.child.append(child_node) (parse_start, parse_end) = (current.data_scope[0], current.data_scope[1]) current = child_node continue else: current.data = stream[current.data_scope[0]:current.data_scope[1]].strip() if current.parent is None: break traverse_end = 0 for children in current.parent.child: if traverse_end < children.close_tag_scope[1]: traverse_end = children.close_tag_scope[1] if stream.find('<', traverse_end, current.parent.data_scope[1]) == -1: if current.parent is None or current.parent.parent is None: break current = current.parent if stream.find('<', current.close_tag_scope[1], current.parent.close_tag_scope[0]) == -1: break (parse_start, parse_end) = (current.close_tag_scope[1], current.parent.close_tag_scope[0]) parent_brother_node = node() parent_brother_node.parent = current.parent current.parent.child.append(parent_brother_node) current = parent_brother_node continue else: (parse_start, parse_end) = (traverse_end, current.parent.data_scope[1]) brother_node = node() brother_node.parent = current.parent current.parent.child.append(brother_node) current = brother_node continue except Exception as e: print('parse except : {0}'.format(e)) return None try: current = root result = dict() stack = [result] while True: current.is_traversed = True if current.name in stack[-1].keys(): if type(stack[-1][current.name]) == list: if not current.data is None and current.is_contain == False: stack[-1][current.name].append(current.data) elif not current.attribute is None: temp = dict() for (k, v) in current.attribute.items(): temp[k] = v stack[-1][current.name].append(temp) stack.append(temp) else: stack[-1][current.name].append(dict()) stack.append(temp) else: temp = [stack[-1][current.name]] stack[-1][current.name] = temp if not current.data is None and current.is_contain == False: stack[-1][current.name].append(current.data) elif not current.attribute is None: node_data = dict() for (k, v) in current.attribute.items(): node_data[k] = v stack[-1][current.name].append(node_data) stack.append(node_data) else: node_data = dict() stack[-1][current.name].append(node_data) stack.append(node_data) elif not current.data is None and current.is_contain == False: stack[-1][current.name] = current.data elif not current.attribute is None: stack[-1][current.name] = dict() for (k, v) in current.attribute.items(): stack[-1][current.name][k] = v stack.append(stack[-1][current.name]) else: stack[-1][current.name] = dict() stack.append(stack[-1][current.name]) if not current.child is None: child_flag = False for children in current.child: if not children.is_traversed: current = children child_flag = True break if child_flag: continue brother_flag = False while not current.parent is None: if not current.parent.child is None: for brother in current.parent.child: if not brother.is_traversed: current = brother brother_flag = True break if brother_flag: break else: current = current.parent stack.pop() if not brother_flag: break except Exception as e: print('convert except : {0}'.format(e)) return None return result
def read_each(): with open('input.txt') as fh: for line in fh.readlines(): policy, pwd = line.split(':') yield policy.strip(), pwd.strip() def validate(policy, pwd): rng, req_char = policy.split() pos1, pos2 = rng.split('-') pos1 = int(pos1)-1 pos2 = int(pos2)-1 matches = 0 if pos1 <= len(pwd) and pwd[pos1] == req_char: matches += 1 if pos2 <= len(pwd) and pwd[pos2] == req_char: matches += 1 if matches == 1: return True return False def main(): valid = 0 for policy, pwd in read_each(): if validate(policy, pwd): valid += 1 print(valid) if __name__ == '__main__': # 850 too high main()
def read_each(): with open('input.txt') as fh: for line in fh.readlines(): (policy, pwd) = line.split(':') yield (policy.strip(), pwd.strip()) def validate(policy, pwd): (rng, req_char) = policy.split() (pos1, pos2) = rng.split('-') pos1 = int(pos1) - 1 pos2 = int(pos2) - 1 matches = 0 if pos1 <= len(pwd) and pwd[pos1] == req_char: matches += 1 if pos2 <= len(pwd) and pwd[pos2] == req_char: matches += 1 if matches == 1: return True return False def main(): valid = 0 for (policy, pwd) in read_each(): if validate(policy, pwd): valid += 1 print(valid) if __name__ == '__main__': main()
# 34. Find First and Last Position of Element in Sorted Array # Runtime: 93 ms, faster than 27.31% of Python3 online submissions for Find First and Last Position of Element in Sorted Array. # Memory Usage: 15.6 MB, less than 12.09% of Python3 online submissions for Find First and Last Position of Element in Sorted Array. class Solution: # Binary Search def searchRange(self, nums: list[int], target: int) -> list[int]: def find_left_bound() -> int: begin, end = 0, len(nums) while begin < end: mid = begin + (end - begin) // 2 if nums[mid] == target: end = mid elif nums[mid] > target: end = mid else: begin = mid + 1 if begin >= len(nums) or nums[begin] != target: return -1 else: return begin def find_right_bound() -> int: begin, end = 0, len(nums) while begin < end: mid = begin + (end - begin) // 2 if nums[mid] == target: begin = mid + 1 elif nums[mid] > target: end = mid else: begin = mid + 1 if begin == 0 or nums[begin - 1] != target: return -1 else: return begin - 1 lower_bound = find_left_bound() if (lower_bound == -1): return [-1, -1] else: return [lower_bound, find_right_bound()]
class Solution: def search_range(self, nums: list[int], target: int) -> list[int]: def find_left_bound() -> int: (begin, end) = (0, len(nums)) while begin < end: mid = begin + (end - begin) // 2 if nums[mid] == target: end = mid elif nums[mid] > target: end = mid else: begin = mid + 1 if begin >= len(nums) or nums[begin] != target: return -1 else: return begin def find_right_bound() -> int: (begin, end) = (0, len(nums)) while begin < end: mid = begin + (end - begin) // 2 if nums[mid] == target: begin = mid + 1 elif nums[mid] > target: end = mid else: begin = mid + 1 if begin == 0 or nums[begin - 1] != target: return -1 else: return begin - 1 lower_bound = find_left_bound() if lower_bound == -1: return [-1, -1] else: return [lower_bound, find_right_bound()]
''' In a array A of size 2N, there are N+1 unique elements, and exactly one of these elements is repeated N times. Return the element repeated N times. Example 1: Input: [1,2,3,3] Output: 3 Example 2: Input: [2,1,2,5,3,2] Output: 2 Example 3: Input: [5,1,5,2,5,3,5,4] Output: 5 Note: 4 <= A.length <= 10000 0 <= A[i] < 10000 A.length is even ''' def repeatedNTimes(arr): map_arr = {} n = len(arr)/2 for i in arr: if i in map_arr: map_arr[i] = map_arr[i] + 1 else: map_arr[i] = 1 for key, value in map_arr.items(): if value == n: return key # print(repeatedNTimes([1,2,2,3])) # print(repeatedNTimes([1,2,3,3])) # print(repeatedNTimes([5,1,5,2,5,3,5,4])) # print(repeatedNTimes([]))
""" In a array A of size 2N, there are N+1 unique elements, and exactly one of these elements is repeated N times. Return the element repeated N times. Example 1: Input: [1,2,3,3] Output: 3 Example 2: Input: [2,1,2,5,3,2] Output: 2 Example 3: Input: [5,1,5,2,5,3,5,4] Output: 5 Note: 4 <= A.length <= 10000 0 <= A[i] < 10000 A.length is even """ def repeated_n_times(arr): map_arr = {} n = len(arr) / 2 for i in arr: if i in map_arr: map_arr[i] = map_arr[i] + 1 else: map_arr[i] = 1 for (key, value) in map_arr.items(): if value == n: return key
QUALITY = 50 STOPSTREAM = -1 FRAMEMISS = -2 TRACKMISS = -3 COLLECT_TIMESTEP = 0.01 DEC_TIMESTEP = 0.01 DIST_TIMESTEP = 0.01 ENC_TIMESTEP = 0.01 PUB_TIMESTEP = 0.01 SUB_TIMESTEP = 0.01 REQ_TIMESTEP = 0.03 COLLECT_HWM = 3 DEC_HWM = 3 ENC_HWM = 3 DIST_HWM = 3 PUB_HWM = 3 SUB_HWM = 3 REQ_HWM = 3
quality = 50 stopstream = -1 framemiss = -2 trackmiss = -3 collect_timestep = 0.01 dec_timestep = 0.01 dist_timestep = 0.01 enc_timestep = 0.01 pub_timestep = 0.01 sub_timestep = 0.01 req_timestep = 0.03 collect_hwm = 3 dec_hwm = 3 enc_hwm = 3 dist_hwm = 3 pub_hwm = 3 sub_hwm = 3 req_hwm = 3
plotSize =1 # MARE for regressors, accuracy for classifiers lrCurve = 0
plot_size = 1 lr_curve = 0
# from functools import lru_cache class Solution: def climbStairs(self, n: int) -> int: if n == 1: return 1 prev = 1 cur = 2 for i in range(2, n): cur, prev = cur + prev, cur return cur
class Solution: def climb_stairs(self, n: int) -> int: if n == 1: return 1 prev = 1 cur = 2 for i in range(2, n): (cur, prev) = (cur + prev, cur) return cur
# # Copyright (c) 2017 Joy Diamond. All rights reserved. # if __name__ == '__main__': def gem(module_name): def execute(f): return f() return execute @gem('Ivory.Boot') def gem(): PythonSystem = __import__('sys') is_python_2 = PythonSystem.version_info.major is 2 is_python_3 = PythonSystem.version_info.major is 3 PythonBuiltIn = __import__('__builtin__' if is_python_2 else 'builtins') # # Python keywords # none = None # # Python Functions # exception_information = PythonSystem.exc_info intern_string = (PythonBuiltIn if is_python_2 else PythonSystem).intern iterate = PythonBuiltIn.iter length = PythonBuiltIn.len system_exit = PythonSystem.exit # # Python types # Module = PythonBuiltIn.__class__ # # python_modules & store_python_modules # python_modules = PythonSystem.modules store_python_module = python_modules.__setitem__ # # PythonException # PythonException = (__import__('exceptions') if is_python_2 else PythonBuiltIn) NameError = PythonException.NameError SystemExit = PythonException.SystemExit # # PythonTraceback # PythonTraceBack = __import__('traceback') print_exception = PythonTraceBack.print_exception # # Ivory # Ivory_name = intern_string('Ivory') Ivory = Module(Ivory_name) Ivory_scope = Ivory.__dict__ Ivory.__builtins__ = PythonBuiltIn.__dict__ store_python_module(Ivory_name, Ivory) # # localize # def localize(f): return Function( function_code(f), Ivory_scope, intern_string(function_name(f)), function_defaults(f), function_closure(f), ) # # Function # Function = localize.__class__ if is_python_2: function_closure = Function.func_closure .__get__ function_code = Function.func_code .__get__ function_defaults = Function.func_defaults.__get__ function_globals = Function.func_globals .__get__ else: function_closure = Function.__closure__ .__get__ function_code = Function.__code__ .__get__ function_defaults = Function.__defaults__.__get__ function_globals = Function.__globals__ .__get__ function_name = Function.__dict__['__name__'].__get__ # # Code # if __debug__: Code = function_code(localize).__class__ code_argument_count = Code.co_argcount .__get__ code_cell_vars = Code.co_cellvars .__get__ code_constants = Code.co_consts .__get__ code_filename = Code.co_filename .__get__ code_first_line_number = Code.co_firstlineno.__get__ code_flags = Code.co_flags .__get__ code_free_variables = Code.co_freevars .__get__ code_global_names = Code.co_names .__get__ code_line_number_table = Code.co_lnotab .__get__ code_name = Code.co_name .__get__ code_number_locals = Code.co_nlocals .__get__ code_stack_size = Code.co_stacksize .__get__ code_variable_names = Code.co_varnames .__get__ code_virtual_code = Code.co_code .__get__ if not is_python_2: code_keyword_only_argument_count = Code.co_kwonlyargcount.__get__ # # rename_code # if __debug__: if is_python_2: @localize def rename_code(code, interned_name): return Code( code_argument_count (code), code_number_locals (code), code_stack_size (code), code_flags (code), code_virtual_code (code), code_constants (code), code_global_names (code), code_variable_names (code), code_filename (code), interned_name, # Rename to 'name' code_first_line_number(code), code_line_number_table(code), code_free_variables (code), code_cell_vars (code), ) else: @localize def rename_code(code, interned_name): return Code( code_argument_count (code), code_keyword_only_argument_count(code), code_number_locals (code), code_stack_size (code), code_flags (code), code_virtual_code (code), code_constants (code), code_global_names (code), code_variable_names (code), code_filename (code), interned_name, # Rename to 'name' code_first_line_number (code), code_line_number_table (code), code_free_variables (code), code_cell_vars (code), ) # # rename_function # if __debug__: @localize def rename_function(actual_name, f, code = none, scope = none): interned_name = intern_string(actual_name) return Function( (code) or (rename_code(function_code(f), interned_name)), (scope) or (function_globals(f)), interned_name, function_defaults(f), function_closure(f), ) else: @localize def rename_function(name, f, code = none, scope = none): if code is scope is none: return f return Function( (code) or (function_code(f)), (scope) or (function_globals(f)), intern_string(actual_name), function_defaults(f), function_closure(f), ) # # rename # if __debug__: def rename(name): def rename(f): return rename_function(name, f) return rename # # next_method # Access the .next method of an iterator # # (Deals with the annoyance of .next method named .next in python 2.0, but .__next__ in python 3.0) # if is_python_2: @localize def next_method(iterator): return iterator.next else: @localize def next_method(iterator): return iterator.__next__ # # export # Exports a function to Ivory; also the actual function exported # is a copy of the original function -- but with its global scope replaced to 'scope'. # # Can also be used with multiple arguments to export a list of values (no replacement of # global scope's is done in this case). # @localize def produce_actual_export(scope, insert): def export(f, *arguments): if length(arguments) is 0: if f.__class__ is Function: name = intern_string(function_name(f)) return insert( name, Function( function_code(f), scope, # Replace global scope with module's scope name, function_defaults(f), function_closure(f), ), ) return insert(intern_string(f.__name__), f) argument_iterator = iterate(arguments) next_argument = next_method(argument_iterator) insert(intern_string(f), next_argument()) for name in argument_iterator: insert(intern_string(name), next_argument()) return export # # arrange # @localize def arrange(format, *arguments): return format % arguments # # raise_already_exists # if __debug__: @localize def raise_already_exists(module_name, name, previous, exporting): name_error = arrange("%s.%s already exists (value: %r): can't export %r also", module_name, name, previous, exporting) raise NameError(name_error) # # produce_single_insert # if __debug__: @localize def produce_single_insert(actual_name, provide, module_name): module_name = intern_string(module_name) @rename(actual_name) def single_insert(name, exporting): previous = provide(name, exporting) if previous is exporting: return previous raise_already_exists(module_name, name, previous, exporting) return single_insert else: @localize def produce_single_insert(actual_name, provide, module_name): return provide # # share # insert_share = produce_single_insert('insert_share', Ivory_scope.setdefault, Ivory_name) share = produce_actual_export(Ivory_scope, insert_share) if __debug__: share = rename_function('share', share) # # Initial share # share( # # Keywords # implemented as keywords in Python 3.0 --so can't use an expression like 'PythonBuiltIn.None'. # 'false', False, 'none', None, 'true', True, # # Modules # 'PythonBuiltIn', PythonBuiltIn, 'PythonSystem', PythonSystem, # # Types # 'Module', Module, # # Functions # 'arrange', arrange, 'length', length, 'intern_string', intern_string, 'share', share, # # Values # 'is_python_2', is_python_2, 'is_python_3', is_python_3, ) # # gem # gem_name = intern_string('gem') def gem(module_gem): def execute(f): Function( function_code(f), Ivory_scope, # Replace global scope with Ivory's shared scope gem_name, function_defaults(f), function_closure(f), )( ) if f.__name__ == '__name__': # # The final function just got executed: # # 1. Cleanup after ourselves # 2. Run main inside an exception handler # main = Ivory_scope.pop('main') try: main() except: [e_type, e, e_traceback] = exception_information() if e_type is SystemExit: # Builtin raise # # Use 'traceback.tb_next' to remove ourselves from the stack trace # try: print_exception(e_type, e, e_traceback.tb_next) finally: e_type = e = e_traceback = 0 PythonSystem.exit(1) assert f.__name__ == '__name__' return gem return execute return gem @gem('Ivory.Main') def __name__(): PythonPlatform = __import__('platform') PythonSystem = __import__('sys') is_python_2 = PythonSystem.version_info.major is 2 is_python_3 = PythonSystem.version_info.major is 3 PythonBuiltIn = __import__('__builtin__' if is_python_2 else 'builtins') PythonTraceBack = __import__('traceback') PythonTypes = __import__('types') # # Python keywords # implemented as keywords in Python 3.0 --so can't use an expression like 'PythonBuiltIn.None'. # false = False none = None # # Python Functions # intern_string = (PythonBuiltIn if is_python_2 else PythonSystem).intern iterate = PythonBuiltIn.iter length = PythonBuiltIn.len portray = PythonBuiltIn.repr type = PythonBuiltIn.type # # Python Types # FrozenSet = PythonBuiltIn.frozenset Method = PythonTypes.MethodType NoneType = none.__class__ Object = PythonBuiltIn.object Tuple = PythonBuiltIn.tuple # # Exceptions # PythonException = (__import__('exceptions') if is_python_2 else PythonBuiltIn) SystemExit = PythonException.SystemExit # # arrange # def arrange(format, *arguments): return format % arguments # # line # flush_standard_output = PythonSystem.stdout.flush write_standard_output = PythonSystem.stdout.write position_cache = [0] position = Method(position_cache.__getitem__, 0) save_position = Method(position_cache.__setitem__, 0) save_position_0 = Method(save_position, 0) def line(format = none, *arguments): if format is none: assert length(arguments) is 0 write_standard_output('\n') else: if position() != 0: write_standard_output(' ' + (format % arguments if arguments else format) + '\n') else: write_standard_output((format % arguments if arguments else format) + '\n') flush_standard_output() save_position_0() def partial(format, *arguments): s = (format % arguments if arguments else format) write_standard_output(s) flush_standard_output() save_position(position() + length(s)) # # PrintHeader_and_PrintAndIgnoreExceptions # class PrintHeader_and_PrintAndIgnoreExceptions(): __slots__ = (( 'header', # String )) def __init__(t, header): t.header = header def __enter__(t): partial('%s ...', t.header) return t def __exit__(t, e_type, e, e_traceback): if (e is None) or (e_type is SystemExit): return if position() != 0: line() PythonTraceBack.print_exception(e_type, e, e_traceback.tb_next) # # Swallow exception # return false def safe(header): return PrintHeader_and_PrintAndIgnoreExceptions(header) # # python_version # def python_version(): version_information = PythonSystem.version_info build_information = PythonPlatform.python_build() assert (type(build_information) is Tuple) and (length(build_information) == 2) return arrange('%d%s%s%s (%s %s)', version_information.major, ( '' if version_information.minor == version_information.micro == 0 else arrange('.%d', version_information.micro) ), ( '' if version_information.micro == 0 else arrange('.%d', version_information.micro) ), ( '' if version_information.serial == 0 else arrange('.%d', version_information.serial) ), build_information[0], build_information[1]) # # Main # @share def main(): # # Version # with safe('Python version'): line(python_version()) # # Executable # with safe('Python executable'): lookup_PythonSystem = PythonSystem.__dict__.get executable = lookup_PythonSystem('executable') line('unknown' if executable is none else portray(executable))
if __name__ == '__main__': def gem(module_name): def execute(f): return f() return execute @gem('Ivory.Boot') def gem(): python_system = __import__('sys') is_python_2 = PythonSystem.version_info.major is 2 is_python_3 = PythonSystem.version_info.major is 3 python_built_in = __import__('__builtin__' if is_python_2 else 'builtins') none = None exception_information = PythonSystem.exc_info intern_string = (PythonBuiltIn if is_python_2 else PythonSystem).intern iterate = PythonBuiltIn.iter length = PythonBuiltIn.len system_exit = PythonSystem.exit module = PythonBuiltIn.__class__ python_modules = PythonSystem.modules store_python_module = python_modules.__setitem__ python_exception = __import__('exceptions') if is_python_2 else PythonBuiltIn name_error = PythonException.NameError system_exit = PythonException.SystemExit python_trace_back = __import__('traceback') print_exception = PythonTraceBack.print_exception ivory_name = intern_string('Ivory') ivory = module(Ivory_name) ivory_scope = Ivory.__dict__ Ivory.__builtins__ = PythonBuiltIn.__dict__ store_python_module(Ivory_name, Ivory) def localize(f): return function(function_code(f), Ivory_scope, intern_string(function_name(f)), function_defaults(f), function_closure(f)) function = localize.__class__ if is_python_2: function_closure = Function.func_closure.__get__ function_code = Function.func_code.__get__ function_defaults = Function.func_defaults.__get__ function_globals = Function.func_globals.__get__ else: function_closure = Function.__closure__.__get__ function_code = Function.__code__.__get__ function_defaults = Function.__defaults__.__get__ function_globals = Function.__globals__.__get__ function_name = Function.__dict__['__name__'].__get__ if __debug__: code = function_code(localize).__class__ code_argument_count = Code.co_argcount.__get__ code_cell_vars = Code.co_cellvars.__get__ code_constants = Code.co_consts.__get__ code_filename = Code.co_filename.__get__ code_first_line_number = Code.co_firstlineno.__get__ code_flags = Code.co_flags.__get__ code_free_variables = Code.co_freevars.__get__ code_global_names = Code.co_names.__get__ code_line_number_table = Code.co_lnotab.__get__ code_name = Code.co_name.__get__ code_number_locals = Code.co_nlocals.__get__ code_stack_size = Code.co_stacksize.__get__ code_variable_names = Code.co_varnames.__get__ code_virtual_code = Code.co_code.__get__ if not is_python_2: code_keyword_only_argument_count = Code.co_kwonlyargcount.__get__ if __debug__: if is_python_2: @localize def rename_code(code, interned_name): return code(code_argument_count(code), code_number_locals(code), code_stack_size(code), code_flags(code), code_virtual_code(code), code_constants(code), code_global_names(code), code_variable_names(code), code_filename(code), interned_name, code_first_line_number(code), code_line_number_table(code), code_free_variables(code), code_cell_vars(code)) else: @localize def rename_code(code, interned_name): return code(code_argument_count(code), code_keyword_only_argument_count(code), code_number_locals(code), code_stack_size(code), code_flags(code), code_virtual_code(code), code_constants(code), code_global_names(code), code_variable_names(code), code_filename(code), interned_name, code_first_line_number(code), code_line_number_table(code), code_free_variables(code), code_cell_vars(code)) if __debug__: @localize def rename_function(actual_name, f, code=none, scope=none): interned_name = intern_string(actual_name) return function(code or rename_code(function_code(f), interned_name), scope or function_globals(f), interned_name, function_defaults(f), function_closure(f)) else: @localize def rename_function(name, f, code=none, scope=none): if code is scope is none: return f return function(code or function_code(f), scope or function_globals(f), intern_string(actual_name), function_defaults(f), function_closure(f)) if __debug__: def rename(name): def rename(f): return rename_function(name, f) return rename if is_python_2: @localize def next_method(iterator): return iterator.next else: @localize def next_method(iterator): return iterator.__next__ @localize def produce_actual_export(scope, insert): def export(f, *arguments): if length(arguments) is 0: if f.__class__ is Function: name = intern_string(function_name(f)) return insert(name, function(function_code(f), scope, name, function_defaults(f), function_closure(f))) return insert(intern_string(f.__name__), f) argument_iterator = iterate(arguments) next_argument = next_method(argument_iterator) insert(intern_string(f), next_argument()) for name in argument_iterator: insert(intern_string(name), next_argument()) return export @localize def arrange(format, *arguments): return format % arguments if __debug__: @localize def raise_already_exists(module_name, name, previous, exporting): name_error = arrange("%s.%s already exists (value: %r): can't export %r also", module_name, name, previous, exporting) raise name_error(name_error) if __debug__: @localize def produce_single_insert(actual_name, provide, module_name): module_name = intern_string(module_name) @rename(actual_name) def single_insert(name, exporting): previous = provide(name, exporting) if previous is exporting: return previous raise_already_exists(module_name, name, previous, exporting) return single_insert else: @localize def produce_single_insert(actual_name, provide, module_name): return provide insert_share = produce_single_insert('insert_share', Ivory_scope.setdefault, Ivory_name) share = produce_actual_export(Ivory_scope, insert_share) if __debug__: share = rename_function('share', share) share('false', False, 'none', None, 'true', True, 'PythonBuiltIn', PythonBuiltIn, 'PythonSystem', PythonSystem, 'Module', Module, 'arrange', arrange, 'length', length, 'intern_string', intern_string, 'share', share, 'is_python_2', is_python_2, 'is_python_3', is_python_3) gem_name = intern_string('gem') def gem(module_gem): def execute(f): function(function_code(f), Ivory_scope, gem_name, function_defaults(f), function_closure(f))() if f.__name__ == '__name__': main = Ivory_scope.pop('main') try: main() except: [e_type, e, e_traceback] = exception_information() if e_type is SystemExit: raise try: print_exception(e_type, e, e_traceback.tb_next) finally: e_type = e = e_traceback = 0 PythonSystem.exit(1) assert f.__name__ == '__name__' return gem return execute return gem @gem('Ivory.Main') def __name__(): python_platform = __import__('platform') python_system = __import__('sys') is_python_2 = PythonSystem.version_info.major is 2 is_python_3 = PythonSystem.version_info.major is 3 python_built_in = __import__('__builtin__' if is_python_2 else 'builtins') python_trace_back = __import__('traceback') python_types = __import__('types') false = False none = None intern_string = (PythonBuiltIn if is_python_2 else PythonSystem).intern iterate = PythonBuiltIn.iter length = PythonBuiltIn.len portray = PythonBuiltIn.repr type = PythonBuiltIn.type frozen_set = PythonBuiltIn.frozenset method = PythonTypes.MethodType none_type = none.__class__ object = PythonBuiltIn.object tuple = PythonBuiltIn.tuple python_exception = __import__('exceptions') if is_python_2 else PythonBuiltIn system_exit = PythonException.SystemExit def arrange(format, *arguments): return format % arguments flush_standard_output = PythonSystem.stdout.flush write_standard_output = PythonSystem.stdout.write position_cache = [0] position = method(position_cache.__getitem__, 0) save_position = method(position_cache.__setitem__, 0) save_position_0 = method(save_position, 0) def line(format=none, *arguments): if format is none: assert length(arguments) is 0 write_standard_output('\n') elif position() != 0: write_standard_output(' ' + (format % arguments if arguments else format) + '\n') else: write_standard_output((format % arguments if arguments else format) + '\n') flush_standard_output() save_position_0() def partial(format, *arguments): s = format % arguments if arguments else format write_standard_output(s) flush_standard_output() save_position(position() + length(s)) class Printheader_And_Printandignoreexceptions: __slots__ = ('header',) def __init__(t, header): t.header = header def __enter__(t): partial('%s ...', t.header) return t def __exit__(t, e_type, e, e_traceback): if e is None or e_type is SystemExit: return if position() != 0: line() PythonTraceBack.print_exception(e_type, e, e_traceback.tb_next) return false def safe(header): return print_header_and__print_and_ignore_exceptions(header) def python_version(): version_information = PythonSystem.version_info build_information = PythonPlatform.python_build() assert type(build_information) is Tuple and length(build_information) == 2 return arrange('%d%s%s%s (%s %s)', version_information.major, '' if version_information.minor == version_information.micro == 0 else arrange('.%d', version_information.micro), '' if version_information.micro == 0 else arrange('.%d', version_information.micro), '' if version_information.serial == 0 else arrange('.%d', version_information.serial), build_information[0], build_information[1]) @share def main(): with safe('Python version'): line(python_version()) with safe('Python executable'): lookup__python_system = PythonSystem.__dict__.get executable = lookup__python_system('executable') line('unknown' if executable is none else portray(executable))
class User: def __init__(self, id, name, birthday, description, genderId, prefectureId, imageName, hobby, favoriteType): self.id = id self.name = name self.birthday = birthday self.description = description self.genderId = genderId self.prefectureId = prefectureId self.imageName = imageName self.hobby = hobby self.favoriteType = favoriteType
class User: def __init__(self, id, name, birthday, description, genderId, prefectureId, imageName, hobby, favoriteType): self.id = id self.name = name self.birthday = birthday self.description = description self.genderId = genderId self.prefectureId = prefectureId self.imageName = imageName self.hobby = hobby self.favoriteType = favoriteType
# List of Basic configurations #Login Configs clientID='JL53WY5Cw2WK8g' clientSecret='fKqCZ44PIIFdqOjemTIKab0BfEs' agent='popularWordBot Script' username='popularWordBot' #Action Considerations #targetSub = ['testabot','australia'] #consider making this a list targetSub = ['brisbane','melbourne','australia','sydney','perth','tasmania','Adelaide'] #consider making this a list limit = 25 #Sets the limit on hot posts to scan cleanUp = True # True deletes file False will Store them in a folder
client_id = 'JL53WY5Cw2WK8g' client_secret = 'fKqCZ44PIIFdqOjemTIKab0BfEs' agent = 'popularWordBot Script' username = 'popularWordBot' target_sub = ['brisbane', 'melbourne', 'australia', 'sydney', 'perth', 'tasmania', 'Adelaide'] limit = 25 clean_up = True
#%% msg = "Hello world" print(msg) #%% msg2 = "Hello world" print(msg2) # %%
msg = 'Hello world' print(msg) msg2 = 'Hello world' print(msg2)
class Two_Dimensional_Matrix: def isValidSize(self): for i in range(1, self.m): if (self.n != len(self.matrix[i])): return False return True # def isValidType(self, expectedType=int): # for i in range(len(self.matrix)): # for j in range(len(matrix[0])): # if (type(matrix[i][j]) != expectedType): # return False # return True def __init__(self, matrix): self.matrix = matrix self.n = len([row for row in matrix]) self.m = len([col for col in matrix[0]]) if not self.isValidSize(): raise Exception('~ MATRIX has invalid size ~') # if not self.isValidType(): # raise Exception('~ MATRIX has invalid type ~') # print(self.m) # print(self.n) def printMatrix(self): pass if __name__ == "__main__": obj = Two_Dimensional_Matrix([[1,2,3,4],[1,2,4,6],[1,2,4,"s"],[2,5,6,3],[2,5,6,3],[2,5,6,7]])
class Two_Dimensional_Matrix: def is_valid_size(self): for i in range(1, self.m): if self.n != len(self.matrix[i]): return False return True def __init__(self, matrix): self.matrix = matrix self.n = len([row for row in matrix]) self.m = len([col for col in matrix[0]]) if not self.isValidSize(): raise exception('~ MATRIX has invalid size ~') def print_matrix(self): pass if __name__ == '__main__': obj = two__dimensional__matrix([[1, 2, 3, 4], [1, 2, 4, 6], [1, 2, 4, 's'], [2, 5, 6, 3], [2, 5, 6, 3], [2, 5, 6, 7]])
class Solution: def XXX(self, height: [int]) -> int: area = 0 y = len(height)-1 x = 0 while x != y: a = min(height[y],height[x]) * abs(x-y) if a > area: area = a if height[x] < height[y]: x += 1 else: y -= 1 return area
class Solution: def xxx(self, height: [int]) -> int: area = 0 y = len(height) - 1 x = 0 while x != y: a = min(height[y], height[x]) * abs(x - y) if a > area: area = a if height[x] < height[y]: x += 1 else: y -= 1 return area
def insertion_sort_general(arr): if not arr: return arr size = len(arr) for i in range(size): for j in range(i + 1, size): while i < j: if arr[j] < arr[j - 1]: arr[j], arr[j - 1] = arr[j - 1], arr[j] j -= 1 return arr arr = [1, 5, 3, 8, 2, 6, 7] print(insertion_sort_general(arr)) # // Name Best Average Worst Memory Stable Comments # // Insertion sort n n2 n2 1 Yes
def insertion_sort_general(arr): if not arr: return arr size = len(arr) for i in range(size): for j in range(i + 1, size): while i < j: if arr[j] < arr[j - 1]: (arr[j], arr[j - 1]) = (arr[j - 1], arr[j]) j -= 1 return arr arr = [1, 5, 3, 8, 2, 6, 7] print(insertion_sort_general(arr))
phone_to_id = { "n": 0, "s": 1, "ER": 2, "iong": 3, "AE": 4, "HH": 5, "h": 6, "S": 7, "JH": 8, "AY": 9, "W": 10, "DH": 11, "SH": 12, "5": 13, "4": 14, "t": 15, "AA": 16, "c": 17, "EY": 18, "j": 19, "ian": 20, "x": 21, "uan": 22, "ou": 23, "T": 24, "l": 25, "UH": 26, "6": 27, "D": 28, "#3": 29, "e": 30, "sh": 31, "#0": 32, "ang": 33, "ong": 34, "in": 35, "iao": 36, "ing": 37, "IH": 38, "2": 39, "z": 40, "van": 41, "uei": 42, "ei": 43, "AW": 44, "i": 45, "#1": 46, "ch": 47, "OW": 48, "iang": 49, "eng": 50, "g": 51, "ve": 52, "K": 53, "M": 54, "P": 55, "ie": 56, "AH": 57, "Z": 58, "sp": 59, "q": 60, "N": 61, "sil": 62, "AO": 63, "Y": 64, "f": 65, "uai": 66, "k": 67, "G": 68, "uo": 69, "#2": 70, "F": 71, "ZH": 72, "OY": 73, "r": 74, "m": 75, "b": 76, "o": 77, "iou": 78, "1": 79, "zh": 80, "ao": 81, "EH": 82, "B": 83, "V": 84, "3": 85, "uang": 86, "er": 87, "CH": 88, "d": 89, "UW": 90, "en": 91, "AX": 92, "a": 93, "xr": 94, "iii": 95, "ua": 96, "TH": 97, "ueng": 98, "ia": 99, "NG": 100, "R": 101, "v": 102, "an": 103, "L": 104, "u": 105, "ai": 106, "ii": 107, "p": 108, "IY": 109, "uen": 110, "vn": 111, "~": 112, "u3": 113, }
phone_to_id = {'n': 0, 's': 1, 'ER': 2, 'iong': 3, 'AE': 4, 'HH': 5, 'h': 6, 'S': 7, 'JH': 8, 'AY': 9, 'W': 10, 'DH': 11, 'SH': 12, '5': 13, '4': 14, 't': 15, 'AA': 16, 'c': 17, 'EY': 18, 'j': 19, 'ian': 20, 'x': 21, 'uan': 22, 'ou': 23, 'T': 24, 'l': 25, 'UH': 26, '6': 27, 'D': 28, '#3': 29, 'e': 30, 'sh': 31, '#0': 32, 'ang': 33, 'ong': 34, 'in': 35, 'iao': 36, 'ing': 37, 'IH': 38, '2': 39, 'z': 40, 'van': 41, 'uei': 42, 'ei': 43, 'AW': 44, 'i': 45, '#1': 46, 'ch': 47, 'OW': 48, 'iang': 49, 'eng': 50, 'g': 51, 've': 52, 'K': 53, 'M': 54, 'P': 55, 'ie': 56, 'AH': 57, 'Z': 58, 'sp': 59, 'q': 60, 'N': 61, 'sil': 62, 'AO': 63, 'Y': 64, 'f': 65, 'uai': 66, 'k': 67, 'G': 68, 'uo': 69, '#2': 70, 'F': 71, 'ZH': 72, 'OY': 73, 'r': 74, 'm': 75, 'b': 76, 'o': 77, 'iou': 78, '1': 79, 'zh': 80, 'ao': 81, 'EH': 82, 'B': 83, 'V': 84, '3': 85, 'uang': 86, 'er': 87, 'CH': 88, 'd': 89, 'UW': 90, 'en': 91, 'AX': 92, 'a': 93, 'xr': 94, 'iii': 95, 'ua': 96, 'TH': 97, 'ueng': 98, 'ia': 99, 'NG': 100, 'R': 101, 'v': 102, 'an': 103, 'L': 104, 'u': 105, 'ai': 106, 'ii': 107, 'p': 108, 'IY': 109, 'uen': 110, 'vn': 111, '~': 112, 'u3': 113}
def double(val): return val + val print(double(3)) print(double(3.3)) print(double('3'))
def double(val): return val + val print(double(3)) print(double(3.3)) print(double('3'))
def prim(n, adj): total_weight = 0 selected, min_e = [False] * n, [[float('inf'), -1] for _ in range(n)] mst_edges = [] min_e[0][0] = 0 for i in range(n): v = -1 for j in range(n): if (not selected[j]) and ((v == -1) or (min_e[j][0] < min_e[v][0])): v = j if min_e[v][0] == float('inf'): return None, None selected[v] = True total_weight += min_e[v][0] if min_e[v][1] != -1: mst_edges.append((v, min_e[v][1])) for to in range(n): if adj[v][to] < min_e[to][0]: min_e[to] = [adj[v][to], v] return mst_edges, total_weight
def prim(n, adj): total_weight = 0 (selected, min_e) = ([False] * n, [[float('inf'), -1] for _ in range(n)]) mst_edges = [] min_e[0][0] = 0 for i in range(n): v = -1 for j in range(n): if not selected[j] and (v == -1 or min_e[j][0] < min_e[v][0]): v = j if min_e[v][0] == float('inf'): return (None, None) selected[v] = True total_weight += min_e[v][0] if min_e[v][1] != -1: mst_edges.append((v, min_e[v][1])) for to in range(n): if adj[v][to] < min_e[to][0]: min_e[to] = [adj[v][to], v] return (mst_edges, total_weight)
class Command: def __init__(self, function, *args): self.function = function self.args = list(args) def execute(self): self.function(*self.args)
class Command: def __init__(self, function, *args): self.function = function self.args = list(args) def execute(self): self.function(*self.args)
class Arbol: def __init__(self, instructions): self.instrucciones:list = instructions self.console:list = []
class Arbol: def __init__(self, instructions): self.instrucciones: list = instructions self.console: list = []
# # PySNMP MIB module ZHNSYSMON (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ZHNSYSMON # Produced by pysmi-0.3.4 at Mon Apr 29 21:40:22 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueSizeConstraint, ConstraintsUnion, ConstraintsIntersection, SingleValueConstraint, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ConstraintsUnion", "ConstraintsIntersection", "SingleValueConstraint", "ValueRangeConstraint") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") Counter32, ModuleIdentity, ObjectIdentity, Bits, Counter64, iso, Unsigned32, MibScalar, MibTable, MibTableRow, MibTableColumn, MibIdentifier, Integer32, IpAddress, Gauge32, TimeTicks, NotificationType = mibBuilder.importSymbols("SNMPv2-SMI", "Counter32", "ModuleIdentity", "ObjectIdentity", "Bits", "Counter64", "iso", "Unsigned32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "MibIdentifier", "Integer32", "IpAddress", "Gauge32", "TimeTicks", "NotificationType") DisplayString, DateAndTime, TextualConvention, RowStatus = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "DateAndTime", "TextualConvention", "RowStatus") zhoneWtn, = mibBuilder.importSymbols("Zhone", "zhoneWtn") zhnSysMon = ModuleIdentity((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1)) zhnSysMon.setRevisions(('2010-09-24 00:00', '2010-06-21 00:00', '2009-12-14 00:00', '2009-05-20 00:00', '2009-04-06 00:00', '2009-01-06 00:00', '2008-05-21 00:00', '2007-11-26 00:00', '2006-12-26 00:00', '2006-12-12 00:00', '2006-11-17 00:00', '2006-08-31 00:00',)) if mibBuilder.loadTexts: zhnSysMon.setLastUpdated('201009240000Z') if mibBuilder.loadTexts: zhnSysMon.setOrganization('Zhone Technologies MIB Working Group Other information about group editing the MIB') zhnSysMonNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 0)) zhnSysMonObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 1)) zhnSysMonConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 2)) zhnSysMonAlarmTable = MibTable((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 1, 1), ) if mibBuilder.loadTexts: zhnSysMonAlarmTable.setStatus('current') zhnSysMonAlarmEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 1, 1, 1), ).setIndexNames((0, "ZHNSYSMON", "zhnSysMonAlarmType"), (0, "ZHNSYSMON", "zhnSysMonAlarmSeverity"), (0, "ZHNSYSMON", "zhnSysMonAlarmInterfaceName")) if mibBuilder.loadTexts: zhnSysMonAlarmEntry.setStatus('current') zhnSysMonAlarmType = MibTableColumn((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 1, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 99))).clone(namedValues=NamedValues(("tempThresholdExceeded", 1), ("mainPowerLoss", 2), ("secondaryPowerLoss", 3), ("lowPowerMode", 4), ("selftestFailed", 5), ("interfaceDown", 6), ("processFailed", 7), ("pwDown", 8), ("pwDeleted", 9), ("pwMisconnected", 10), ("pwLOP", 11), ("pwLateFrame", 12), ("pwMalformedFrame", 13), ("pwJitterBufferOverrun", 14), ("dsx1RcvYellow", 15), ("dsx1XmtYellow", 16), ("dsx1RcvAIS", 17), ("dsx1XmtAIS", 18), ("dsx1LossOfFrame", 19), ("dsx1LossOfSignal", 20), ("dsx1LoopbackState", 21), ("dsx1TestingState", 22), ("pwClockStability", 23), ("pwClockHoldover", 24), ("pwClockStabilityIdle", 25), ("pwClockStabilityAcquisition", 26), ("pwClockStabilityTracking1", 27), ("pwClockStabilityRecovery", 28), ("onBatteryPower", 29), ("batteryPowerLow", 30), ("replaceBattery", 31), ("batteryRemoved", 32), ("onBatteryPower2", 33), ("batteryPowerLow2", 34), ("replaceBattery2", 35), ("batteryRemoved2", 36), ("doorOpened", 37), ("other", 99)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: zhnSysMonAlarmType.setStatus('current') zhnSysMonAlarmSeverity = MibTableColumn((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 1, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("minor", 1), ("major", 2), ("critical", 3), ("wanData", 4)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: zhnSysMonAlarmSeverity.setStatus('current') zhnSysMonAlarmInterfaceName = MibTableColumn((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 1, 1, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 255))).setMaxAccess("readcreate") if mibBuilder.loadTexts: zhnSysMonAlarmInterfaceName.setStatus('current') zhnSysMonAlarmDescription = MibTableColumn((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 1, 1, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 255))).setMaxAccess("readcreate") if mibBuilder.loadTexts: zhnSysMonAlarmDescription.setStatus('current') zhnSysMonAlarmRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 1, 1, 1, 5), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: zhnSysMonAlarmRowStatus.setStatus('current') zhnSysMonTestTable = MibTable((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 1, 2), ) if mibBuilder.loadTexts: zhnSysMonTestTable.setStatus('current') zhnSysMonTestEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 1, 2, 1), ).setIndexNames((0, "ZHNSYSMON", "zhnSysMonTestType"), (0, "ZHNSYSMON", "zhnSysMonTestInterfaceName")) if mibBuilder.loadTexts: zhnSysMonTestEntry.setStatus('current') zhnSysMonTestType = MibTableColumn((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 1, 2, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("loopback", 1), ("led", 2)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: zhnSysMonTestType.setStatus('current') zhnSysMonTestInterfaceName = MibTableColumn((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 1, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 255))).setMaxAccess("readcreate") if mibBuilder.loadTexts: zhnSysMonTestInterfaceName.setStatus('current') zhnSysMonTestRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 1, 2, 1, 3), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: zhnSysMonTestRowStatus.setStatus('current') zhnSysMonTempSensorTable = MibTable((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 1, 3), ) if mibBuilder.loadTexts: zhnSysMonTempSensorTable.setStatus('current') zhnSysMonTempSensorEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 1, 3, 1), ).setIndexNames((0, "ZHNSYSMON", "zhnSysMonTempSensorId")) if mibBuilder.loadTexts: zhnSysMonTempSensorEntry.setStatus('current') zhnSysMonTempSensorId = MibTableColumn((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 1, 3, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 9999))).setMaxAccess("readcreate") if mibBuilder.loadTexts: zhnSysMonTempSensorId.setStatus('current') zhnSysMonTempSensorRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 1, 3, 1, 2), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: zhnSysMonTempSensorRowStatus.setStatus('current') zhnSysMonTempSensorCurr = MibTableColumn((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 1, 3, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 8))).setMaxAccess("readonly") if mibBuilder.loadTexts: zhnSysMonTempSensorCurr.setStatus('current') zhnSysMonTempSensorOS = MibTableColumn((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 1, 3, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 8))).setMaxAccess("readwrite") if mibBuilder.loadTexts: zhnSysMonTempSensorOS.setStatus('current') zhnSysMonTempSensorHyst = MibTableColumn((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 1, 3, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 8))).setMaxAccess("readwrite") if mibBuilder.loadTexts: zhnSysMonTempSensorHyst.setStatus('current') zhnSysMonTempSensorName = MibTableColumn((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 1, 3, 1, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: zhnSysMonTempSensorName.setStatus('current') zhnSysMonLinePowerTable = MibTable((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 1, 4), ) if mibBuilder.loadTexts: zhnSysMonLinePowerTable.setStatus('current') zhnSysMonLinePowerEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 1, 4, 1), ).setIndexNames((0, "ZHNSYSMON", "zhnSysMonLinePowerLineNumber")) if mibBuilder.loadTexts: zhnSysMonLinePowerEntry.setStatus('current') zhnSysMonLinePowerLineNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 1, 4, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 9999))).setMaxAccess("readcreate") if mibBuilder.loadTexts: zhnSysMonLinePowerLineNumber.setStatus('current') zhnSysMonLinePowerStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 1, 4, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('enabled')).setMaxAccess("readcreate") if mibBuilder.loadTexts: zhnSysMonLinePowerStatus.setStatus('current') zhnSysMonLinePowerRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 1, 4, 1, 3), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: zhnSysMonLinePowerRowStatus.setStatus('current') zhnSysMonAlarmSetEvent = NotificationType((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 0, 1)).setObjects(("ZHNSYSMON", "zhnSysMonAlarmType"), ("ZHNSYSMON", "zhnSysMonAlarmSeverity"), ("ZHNSYSMON", "zhnSysMonAlarmInterfaceName"), ("ZHNSYSMON", "zhnSysMonAlarmDescription")) if mibBuilder.loadTexts: zhnSysMonAlarmSetEvent.setStatus('current') zhnSysMonAlarmClearEvent = NotificationType((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 0, 2)).setObjects(("ZHNSYSMON", "zhnSysMonAlarmType"), ("ZHNSYSMON", "zhnSysMonAlarmSeverity"), ("ZHNSYSMON", "zhnSysMonAlarmInterfaceName"), ("ZHNSYSMON", "zhnSysMonAlarmDescription")) if mibBuilder.loadTexts: zhnSysMonAlarmClearEvent.setStatus('current') zhnSysMonTestStartEvent = NotificationType((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 0, 3)).setObjects(("ZHNSYSMON", "zhnSysMonTestType"), ("ZHNSYSMON", "zhnSysMonTestInterfaceName")) if mibBuilder.loadTexts: zhnSysMonTestStartEvent.setStatus('current') zhnSysMonTestStopEvent = NotificationType((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 0, 4)).setObjects(("ZHNSYSMON", "zhnSysMonTestType"), ("ZHNSYSMON", "zhnSysMonTestInterfaceName")) if mibBuilder.loadTexts: zhnSysMonTestStopEvent.setStatus('current') zhnSysMonTempSensorCfgUpdateEvent = NotificationType((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 0, 5)).setObjects(("ZHNSYSMON", "zhnSysMonTempSensorId"), ("ZHNSYSMON", "zhnSysMonTempSensorOS"), ("ZHNSYSMON", "zhnSysMonTempSensorHyst")) if mibBuilder.loadTexts: zhnSysMonTempSensorCfgUpdateEvent.setStatus('current') zhnSysMonLinePowerCfgUpdateEvent = NotificationType((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 0, 6)).setObjects(("ZHNSYSMON", "zhnSysMonLinePowerLineNumber"), ("ZHNSYSMON", "zhnSysMonLinePowerStatus")) if mibBuilder.loadTexts: zhnSysMonLinePowerCfgUpdateEvent.setStatus('current') zhnSysMonReadyEvent = NotificationType((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 0, 7)) if mibBuilder.loadTexts: zhnSysMonReadyEvent.setStatus('current') zhnSysMonConfigChangeEvent = NotificationType((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 0, 8)) if mibBuilder.loadTexts: zhnSysMonConfigChangeEvent.setStatus('current') mibBuilder.exportSymbols("ZHNSYSMON", zhnSysMonAlarmClearEvent=zhnSysMonAlarmClearEvent, PYSNMP_MODULE_ID=zhnSysMon, zhnSysMonTempSensorId=zhnSysMonTempSensorId, zhnSysMonTempSensorCurr=zhnSysMonTempSensorCurr, zhnSysMonLinePowerStatus=zhnSysMonLinePowerStatus, zhnSysMonTempSensorEntry=zhnSysMonTempSensorEntry, zhnSysMonTempSensorHyst=zhnSysMonTempSensorHyst, zhnSysMonTempSensorRowStatus=zhnSysMonTempSensorRowStatus, zhnSysMonObjects=zhnSysMonObjects, zhnSysMonAlarmDescription=zhnSysMonAlarmDescription, zhnSysMonTestStartEvent=zhnSysMonTestStartEvent, zhnSysMonAlarmEntry=zhnSysMonAlarmEntry, zhnSysMonNotifications=zhnSysMonNotifications, zhnSysMonTestRowStatus=zhnSysMonTestRowStatus, zhnSysMonAlarmTable=zhnSysMonAlarmTable, zhnSysMonLinePowerCfgUpdateEvent=zhnSysMonLinePowerCfgUpdateEvent, zhnSysMon=zhnSysMon, zhnSysMonTestStopEvent=zhnSysMonTestStopEvent, zhnSysMonTestTable=zhnSysMonTestTable, zhnSysMonAlarmSetEvent=zhnSysMonAlarmSetEvent, zhnSysMonAlarmSeverity=zhnSysMonAlarmSeverity, zhnSysMonLinePowerTable=zhnSysMonLinePowerTable, zhnSysMonReadyEvent=zhnSysMonReadyEvent, zhnSysMonLinePowerRowStatus=zhnSysMonLinePowerRowStatus, zhnSysMonConfigChangeEvent=zhnSysMonConfigChangeEvent, zhnSysMonTempSensorTable=zhnSysMonTempSensorTable, zhnSysMonTempSensorCfgUpdateEvent=zhnSysMonTempSensorCfgUpdateEvent, zhnSysMonLinePowerEntry=zhnSysMonLinePowerEntry, zhnSysMonAlarmInterfaceName=zhnSysMonAlarmInterfaceName, zhnSysMonTestType=zhnSysMonTestType, zhnSysMonTestEntry=zhnSysMonTestEntry, zhnSysMonConformance=zhnSysMonConformance, zhnSysMonLinePowerLineNumber=zhnSysMonLinePowerLineNumber, zhnSysMonAlarmRowStatus=zhnSysMonAlarmRowStatus, zhnSysMonTestInterfaceName=zhnSysMonTestInterfaceName, zhnSysMonTempSensorOS=zhnSysMonTempSensorOS, zhnSysMonTempSensorName=zhnSysMonTempSensorName, zhnSysMonAlarmType=zhnSysMonAlarmType)
(integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_size_constraint, constraints_union, constraints_intersection, single_value_constraint, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueSizeConstraint', 'ConstraintsUnion', 'ConstraintsIntersection', 'SingleValueConstraint', 'ValueRangeConstraint') (module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup') (counter32, module_identity, object_identity, bits, counter64, iso, unsigned32, mib_scalar, mib_table, mib_table_row, mib_table_column, mib_identifier, integer32, ip_address, gauge32, time_ticks, notification_type) = mibBuilder.importSymbols('SNMPv2-SMI', 'Counter32', 'ModuleIdentity', 'ObjectIdentity', 'Bits', 'Counter64', 'iso', 'Unsigned32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'MibIdentifier', 'Integer32', 'IpAddress', 'Gauge32', 'TimeTicks', 'NotificationType') (display_string, date_and_time, textual_convention, row_status) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'DateAndTime', 'TextualConvention', 'RowStatus') (zhone_wtn,) = mibBuilder.importSymbols('Zhone', 'zhoneWtn') zhn_sys_mon = module_identity((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1)) zhnSysMon.setRevisions(('2010-09-24 00:00', '2010-06-21 00:00', '2009-12-14 00:00', '2009-05-20 00:00', '2009-04-06 00:00', '2009-01-06 00:00', '2008-05-21 00:00', '2007-11-26 00:00', '2006-12-26 00:00', '2006-12-12 00:00', '2006-11-17 00:00', '2006-08-31 00:00')) if mibBuilder.loadTexts: zhnSysMon.setLastUpdated('201009240000Z') if mibBuilder.loadTexts: zhnSysMon.setOrganization('Zhone Technologies MIB Working Group Other information about group editing the MIB') zhn_sys_mon_notifications = mib_identifier((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 0)) zhn_sys_mon_objects = mib_identifier((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 1)) zhn_sys_mon_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 2)) zhn_sys_mon_alarm_table = mib_table((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 1, 1)) if mibBuilder.loadTexts: zhnSysMonAlarmTable.setStatus('current') zhn_sys_mon_alarm_entry = mib_table_row((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 1, 1, 1)).setIndexNames((0, 'ZHNSYSMON', 'zhnSysMonAlarmType'), (0, 'ZHNSYSMON', 'zhnSysMonAlarmSeverity'), (0, 'ZHNSYSMON', 'zhnSysMonAlarmInterfaceName')) if mibBuilder.loadTexts: zhnSysMonAlarmEntry.setStatus('current') zhn_sys_mon_alarm_type = mib_table_column((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 1, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 99))).clone(namedValues=named_values(('tempThresholdExceeded', 1), ('mainPowerLoss', 2), ('secondaryPowerLoss', 3), ('lowPowerMode', 4), ('selftestFailed', 5), ('interfaceDown', 6), ('processFailed', 7), ('pwDown', 8), ('pwDeleted', 9), ('pwMisconnected', 10), ('pwLOP', 11), ('pwLateFrame', 12), ('pwMalformedFrame', 13), ('pwJitterBufferOverrun', 14), ('dsx1RcvYellow', 15), ('dsx1XmtYellow', 16), ('dsx1RcvAIS', 17), ('dsx1XmtAIS', 18), ('dsx1LossOfFrame', 19), ('dsx1LossOfSignal', 20), ('dsx1LoopbackState', 21), ('dsx1TestingState', 22), ('pwClockStability', 23), ('pwClockHoldover', 24), ('pwClockStabilityIdle', 25), ('pwClockStabilityAcquisition', 26), ('pwClockStabilityTracking1', 27), ('pwClockStabilityRecovery', 28), ('onBatteryPower', 29), ('batteryPowerLow', 30), ('replaceBattery', 31), ('batteryRemoved', 32), ('onBatteryPower2', 33), ('batteryPowerLow2', 34), ('replaceBattery2', 35), ('batteryRemoved2', 36), ('doorOpened', 37), ('other', 99)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: zhnSysMonAlarmType.setStatus('current') zhn_sys_mon_alarm_severity = mib_table_column((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 1, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('minor', 1), ('major', 2), ('critical', 3), ('wanData', 4)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: zhnSysMonAlarmSeverity.setStatus('current') zhn_sys_mon_alarm_interface_name = mib_table_column((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 1, 1, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(1, 255))).setMaxAccess('readcreate') if mibBuilder.loadTexts: zhnSysMonAlarmInterfaceName.setStatus('current') zhn_sys_mon_alarm_description = mib_table_column((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 1, 1, 1, 4), display_string().subtype(subtypeSpec=value_size_constraint(1, 255))).setMaxAccess('readcreate') if mibBuilder.loadTexts: zhnSysMonAlarmDescription.setStatus('current') zhn_sys_mon_alarm_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 1, 1, 1, 5), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: zhnSysMonAlarmRowStatus.setStatus('current') zhn_sys_mon_test_table = mib_table((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 1, 2)) if mibBuilder.loadTexts: zhnSysMonTestTable.setStatus('current') zhn_sys_mon_test_entry = mib_table_row((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 1, 2, 1)).setIndexNames((0, 'ZHNSYSMON', 'zhnSysMonTestType'), (0, 'ZHNSYSMON', 'zhnSysMonTestInterfaceName')) if mibBuilder.loadTexts: zhnSysMonTestEntry.setStatus('current') zhn_sys_mon_test_type = mib_table_column((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 1, 2, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('loopback', 1), ('led', 2)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: zhnSysMonTestType.setStatus('current') zhn_sys_mon_test_interface_name = mib_table_column((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 1, 2, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(1, 255))).setMaxAccess('readcreate') if mibBuilder.loadTexts: zhnSysMonTestInterfaceName.setStatus('current') zhn_sys_mon_test_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 1, 2, 1, 3), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: zhnSysMonTestRowStatus.setStatus('current') zhn_sys_mon_temp_sensor_table = mib_table((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 1, 3)) if mibBuilder.loadTexts: zhnSysMonTempSensorTable.setStatus('current') zhn_sys_mon_temp_sensor_entry = mib_table_row((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 1, 3, 1)).setIndexNames((0, 'ZHNSYSMON', 'zhnSysMonTempSensorId')) if mibBuilder.loadTexts: zhnSysMonTempSensorEntry.setStatus('current') zhn_sys_mon_temp_sensor_id = mib_table_column((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 1, 3, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 9999))).setMaxAccess('readcreate') if mibBuilder.loadTexts: zhnSysMonTempSensorId.setStatus('current') zhn_sys_mon_temp_sensor_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 1, 3, 1, 2), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: zhnSysMonTempSensorRowStatus.setStatus('current') zhn_sys_mon_temp_sensor_curr = mib_table_column((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 1, 3, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(1, 8))).setMaxAccess('readonly') if mibBuilder.loadTexts: zhnSysMonTempSensorCurr.setStatus('current') zhn_sys_mon_temp_sensor_os = mib_table_column((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 1, 3, 1, 4), display_string().subtype(subtypeSpec=value_size_constraint(1, 8))).setMaxAccess('readwrite') if mibBuilder.loadTexts: zhnSysMonTempSensorOS.setStatus('current') zhn_sys_mon_temp_sensor_hyst = mib_table_column((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 1, 3, 1, 5), display_string().subtype(subtypeSpec=value_size_constraint(1, 8))).setMaxAccess('readwrite') if mibBuilder.loadTexts: zhnSysMonTempSensorHyst.setStatus('current') zhn_sys_mon_temp_sensor_name = mib_table_column((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 1, 3, 1, 6), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readwrite') if mibBuilder.loadTexts: zhnSysMonTempSensorName.setStatus('current') zhn_sys_mon_line_power_table = mib_table((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 1, 4)) if mibBuilder.loadTexts: zhnSysMonLinePowerTable.setStatus('current') zhn_sys_mon_line_power_entry = mib_table_row((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 1, 4, 1)).setIndexNames((0, 'ZHNSYSMON', 'zhnSysMonLinePowerLineNumber')) if mibBuilder.loadTexts: zhnSysMonLinePowerEntry.setStatus('current') zhn_sys_mon_line_power_line_number = mib_table_column((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 1, 4, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 9999))).setMaxAccess('readcreate') if mibBuilder.loadTexts: zhnSysMonLinePowerLineNumber.setStatus('current') zhn_sys_mon_line_power_status = mib_table_column((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 1, 4, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('enabled')).setMaxAccess('readcreate') if mibBuilder.loadTexts: zhnSysMonLinePowerStatus.setStatus('current') zhn_sys_mon_line_power_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 1, 4, 1, 3), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: zhnSysMonLinePowerRowStatus.setStatus('current') zhn_sys_mon_alarm_set_event = notification_type((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 0, 1)).setObjects(('ZHNSYSMON', 'zhnSysMonAlarmType'), ('ZHNSYSMON', 'zhnSysMonAlarmSeverity'), ('ZHNSYSMON', 'zhnSysMonAlarmInterfaceName'), ('ZHNSYSMON', 'zhnSysMonAlarmDescription')) if mibBuilder.loadTexts: zhnSysMonAlarmSetEvent.setStatus('current') zhn_sys_mon_alarm_clear_event = notification_type((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 0, 2)).setObjects(('ZHNSYSMON', 'zhnSysMonAlarmType'), ('ZHNSYSMON', 'zhnSysMonAlarmSeverity'), ('ZHNSYSMON', 'zhnSysMonAlarmInterfaceName'), ('ZHNSYSMON', 'zhnSysMonAlarmDescription')) if mibBuilder.loadTexts: zhnSysMonAlarmClearEvent.setStatus('current') zhn_sys_mon_test_start_event = notification_type((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 0, 3)).setObjects(('ZHNSYSMON', 'zhnSysMonTestType'), ('ZHNSYSMON', 'zhnSysMonTestInterfaceName')) if mibBuilder.loadTexts: zhnSysMonTestStartEvent.setStatus('current') zhn_sys_mon_test_stop_event = notification_type((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 0, 4)).setObjects(('ZHNSYSMON', 'zhnSysMonTestType'), ('ZHNSYSMON', 'zhnSysMonTestInterfaceName')) if mibBuilder.loadTexts: zhnSysMonTestStopEvent.setStatus('current') zhn_sys_mon_temp_sensor_cfg_update_event = notification_type((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 0, 5)).setObjects(('ZHNSYSMON', 'zhnSysMonTempSensorId'), ('ZHNSYSMON', 'zhnSysMonTempSensorOS'), ('ZHNSYSMON', 'zhnSysMonTempSensorHyst')) if mibBuilder.loadTexts: zhnSysMonTempSensorCfgUpdateEvent.setStatus('current') zhn_sys_mon_line_power_cfg_update_event = notification_type((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 0, 6)).setObjects(('ZHNSYSMON', 'zhnSysMonLinePowerLineNumber'), ('ZHNSYSMON', 'zhnSysMonLinePowerStatus')) if mibBuilder.loadTexts: zhnSysMonLinePowerCfgUpdateEvent.setStatus('current') zhn_sys_mon_ready_event = notification_type((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 0, 7)) if mibBuilder.loadTexts: zhnSysMonReadyEvent.setStatus('current') zhn_sys_mon_config_change_event = notification_type((1, 3, 6, 1, 4, 1, 5504, 2, 5, 1, 0, 8)) if mibBuilder.loadTexts: zhnSysMonConfigChangeEvent.setStatus('current') mibBuilder.exportSymbols('ZHNSYSMON', zhnSysMonAlarmClearEvent=zhnSysMonAlarmClearEvent, PYSNMP_MODULE_ID=zhnSysMon, zhnSysMonTempSensorId=zhnSysMonTempSensorId, zhnSysMonTempSensorCurr=zhnSysMonTempSensorCurr, zhnSysMonLinePowerStatus=zhnSysMonLinePowerStatus, zhnSysMonTempSensorEntry=zhnSysMonTempSensorEntry, zhnSysMonTempSensorHyst=zhnSysMonTempSensorHyst, zhnSysMonTempSensorRowStatus=zhnSysMonTempSensorRowStatus, zhnSysMonObjects=zhnSysMonObjects, zhnSysMonAlarmDescription=zhnSysMonAlarmDescription, zhnSysMonTestStartEvent=zhnSysMonTestStartEvent, zhnSysMonAlarmEntry=zhnSysMonAlarmEntry, zhnSysMonNotifications=zhnSysMonNotifications, zhnSysMonTestRowStatus=zhnSysMonTestRowStatus, zhnSysMonAlarmTable=zhnSysMonAlarmTable, zhnSysMonLinePowerCfgUpdateEvent=zhnSysMonLinePowerCfgUpdateEvent, zhnSysMon=zhnSysMon, zhnSysMonTestStopEvent=zhnSysMonTestStopEvent, zhnSysMonTestTable=zhnSysMonTestTable, zhnSysMonAlarmSetEvent=zhnSysMonAlarmSetEvent, zhnSysMonAlarmSeverity=zhnSysMonAlarmSeverity, zhnSysMonLinePowerTable=zhnSysMonLinePowerTable, zhnSysMonReadyEvent=zhnSysMonReadyEvent, zhnSysMonLinePowerRowStatus=zhnSysMonLinePowerRowStatus, zhnSysMonConfigChangeEvent=zhnSysMonConfigChangeEvent, zhnSysMonTempSensorTable=zhnSysMonTempSensorTable, zhnSysMonTempSensorCfgUpdateEvent=zhnSysMonTempSensorCfgUpdateEvent, zhnSysMonLinePowerEntry=zhnSysMonLinePowerEntry, zhnSysMonAlarmInterfaceName=zhnSysMonAlarmInterfaceName, zhnSysMonTestType=zhnSysMonTestType, zhnSysMonTestEntry=zhnSysMonTestEntry, zhnSysMonConformance=zhnSysMonConformance, zhnSysMonLinePowerLineNumber=zhnSysMonLinePowerLineNumber, zhnSysMonAlarmRowStatus=zhnSysMonAlarmRowStatus, zhnSysMonTestInterfaceName=zhnSysMonTestInterfaceName, zhnSysMonTempSensorOS=zhnSysMonTempSensorOS, zhnSysMonTempSensorName=zhnSysMonTempSensorName, zhnSysMonAlarmType=zhnSysMonAlarmType)
# ---------------------------------------------------------------------------- # CLASSES: nightly # # Test Case: ProteinDataBank.py # # Tests: mesh - 3D points # plots - Molecule # # Programmer: Brad Whitlock # Date: Tue Mar 28 15:46:53 PST 2006 # # Modifications: # Jeremy Meredith, Tue Aug 29 13:23:30 EDT 2006 # ProteinDataBank files now have models as directories, not time steps. # # Brad Whitlock, Thu Mar 12 11:04:32 PDT 2009 # I restructured the test into functions. # # ---------------------------------------------------------------------------- def LabelTest(testname, var, zoomview): AddPlot("Label", var) LabelAtts = LabelAttributes() LabelAtts.legendFlag = 1 LabelAtts.showNodes = 0 LabelAtts.showCells = 1 LabelAtts.restrictNumberOfLabels = 0 LabelAtts.drawLabelsFacing = LabelAtts.Front # Front, Back, FrontAndBack LabelAtts.labelDisplayFormat = LabelAtts.Natural # Natural, LogicalIndex, Index LabelAtts.numberOfLabels = 200 LabelAtts.specifyTextColor1 = 1 LabelAtts.textColor1 = (0, 255, 0, 255) LabelAtts.textHeight1 = 0.03 LabelAtts.specifyTextColor2 = 0 LabelAtts.textColor2 = (0, 0, 255, 0) LabelAtts.textHeight2 = 0.02 LabelAtts.horizontalJustification = LabelAtts.HCenter # HCenter, Left, Right LabelAtts.verticalJustification = LabelAtts.VCenter # VCenter, Top, Bottom LabelAtts.depthTestMode = LabelAtts.LABEL_DT_AUTO # LABEL_DT_AUTO, LABEL_DT_ALWAYS, LABEL_DT_NEVER SetPlotOptions(LabelAtts) DrawPlots() oldview = GetView3D() SetView3D(zoomview) # Save these images somewhat larger than a regular test case image # since the images contain a lot of text. # swa = SaveWindowAttributes() # swa.width = 500 # swa.height = 500 # swa.screenCapture = 0 # Test(testname, swa) Test(testname) DeleteActivePlots() SetView3D(oldview) def AddMoleculePlot(db, var): OpenDatabase(db) AddPlot("Molecule", var) MoleculeAtts = MoleculeAttributes() MoleculeAtts.drawAtomsAs = MoleculeAtts.SphereAtoms # NoAtoms, SphereAtoms, ImposterAtoms MoleculeAtts.scaleRadiusBy = MoleculeAtts.Fixed # Fixed, Covalent, Atomic, Variable MoleculeAtts.drawBondsAs = MoleculeAtts.CylinderBonds # NoBonds, LineBonds, CylinderBonds MoleculeAtts.colorBonds = MoleculeAtts.ColorByAtom # ColorByAtom, SingleColor MoleculeAtts.bondSingleColor = (128, 128, 128, 255) MoleculeAtts.radiusVariable = "default" MoleculeAtts.radiusScaleFactor = 1 MoleculeAtts.radiusFixed = 0.4 MoleculeAtts.atomSphereQuality = MoleculeAtts.Medium # Low, Medium, High, Super MoleculeAtts.bondCylinderQuality = MoleculeAtts.Medium # Low, Medium, High, Super MoleculeAtts.bondRadius = 0.12 MoleculeAtts.bondLineWidth = 0 MoleculeAtts.bondLineStyle = 0 MoleculeAtts.elementColorTable = "cpk_jmol" MoleculeAtts.residueTypeColorTable = "amino_shapely" MoleculeAtts.residueSequenceColorTable = "Default" MoleculeAtts.continuousColorTable = "Default" MoleculeAtts.legendFlag = 1 MoleculeAtts.minFlag = 0 MoleculeAtts.scalarMin = 0 MoleculeAtts.maxFlag = 0 MoleculeAtts.scalarMax = 1 SetPlotOptions(MoleculeAtts) DrawPlots() def test0(): TestSection("Testing Rattlesnake venom") AddMoleculePlot(data_path("ProteinDataBank_test_data/crotamine.pdb"), "element") v0 = View3DAttributes() v0.viewNormal = (-0.967329, 0.252251, -0.0253765) v0.focus = (31.726, -54.1675, 13.645) v0.viewUp = (0.252129, 0.967661, 0.0079404) v0.viewAngle = 30 v0.parallelScale = 24.9831 v0.nearPlane = -49.9661 v0.farPlane = 49.9661 v0.imagePan = (0, 0) v0.imageZoom = 1.44471 v0.perspective = 1 v0.eyeAngle = 2 v0.centerOfRotationSet = 0 v0.centerOfRotation = (31.726, -54.1675, 13.645) SetView3D(v0) v0zoom = View3DAttributes() v0zoom.viewNormal = (-0.967329, 0.252251, -0.0253765) v0zoom.focus = (31.726, -54.1675, 13.645) v0zoom.viewUp = (0.252129, 0.967661, 0.0079404) v0zoom.viewAngle = 30 v0zoom.parallelScale = 24.9831 v0zoom.nearPlane = -49.9661 v0zoom.farPlane = 49.9661 v0zoom.imagePan = (0, 0) v0zoom.imageZoom = 7.15293 v0zoom.perspective = 1 v0zoom.eyeAngle = 2 v0zoom.centerOfRotationSet = 0 v0zoom.centerOfRotation = (31.726, -54.1675, 13.645) Test("proteindb_0_00") LabelTest("proteindb_0_01", "elementname", v0zoom) ChangeActivePlotsVar("resseq") Test("proteindb_0_02") LabelTest("proteindb_0_03", "resseq", v0zoom) ChangeActivePlotsVar("backbone") Test("proteindb_0_04") ChangeActivePlotsVar("restype") Test("proteindb_0_05") LabelTest("proteindb_0_06", "resname", v0zoom) LabelTest("proteindb_0_07", "longresname", v0zoom) DeleteAllPlots() def test1(): TestSection("Testing small DNA") AddMoleculePlot(data_path("ProteinDataBank_test_data/1NTS.pdb"), "element") v1 = View3DAttributes() v1.viewNormal = (-0.320353, 0.944248, 0.075961) v1.focus = (-0.0580001, 0.0915003, 0.3815) v1.viewUp = (0.342959, 0.190354, -0.919861) v1.viewAngle = 30 v1.parallelScale = 22.575 v1.nearPlane = -45.1501 v1.farPlane = 45.1501 v1.imagePan = (-0.0021177, -0.0481532) v1.imageZoom = 1.27797 v1.perspective = 1 v1.eyeAngle = 2 v1.centerOfRotationSet = 0 v1.centerOfRotation = (-0.0580001, 0.0915003, 0.3815) SetView3D(v1) v1zoom = View3DAttributes() v1zoom.viewNormal = (-0.320353, 0.944248, 0.075961) v1zoom.focus = (-0.0580001, 0.0915003, 0.3815) v1zoom.viewUp = (0.342959, 0.190354, -0.919861) v1zoom.viewAngle = 30 v1zoom.parallelScale = 22.575 v1zoom.nearPlane = -45.1501 v1zoom.farPlane = 45.1501 v1zoom.imagePan = (-0.00906313, 0.0442979) v1zoom.imageZoom = 6.4294 v1zoom.perspective = 1 v1zoom.eyeAngle = 2 v1zoom.centerOfRotationSet = 0 v1zoom.centerOfRotation = (-0.0580001, 0.0915003, 0.3815) Test("proteindb_1_00") LabelTest("proteindb_1_01", "elementname", v1zoom) ChangeActivePlotsVar("resseq") Test("proteindb_1_02") LabelTest("proteindb_1_03", "resseq", v1zoom) ChangeActivePlotsVar("backbone") Test("proteindb_1_04") ChangeActivePlotsVar("restype") Test("proteindb_1_05") LabelTest("proteindb_1_06", "resname", v1zoom) LabelTest("proteindb_1_07", "longresname", v1zoom) DeleteAllPlots() def test2(): TestSection("Testing insulin") AddMoleculePlot(data_path("ProteinDataBank_test_data/1UZ9.pdb"), "element") v2 = View3DAttributes() v2.viewNormal = (0.215329, 0.245957, 0.94506) v2.focus = (23.441, 26.835, 23.6865) v2.viewUp = (-0.351063, 0.922561, -0.160113) v2.viewAngle = 30 v2.parallelScale = 29.1931 v2.nearPlane = -58.3862 v2.farPlane = 58.3862 v2.imagePan = (0.0260607, 0.00408113) v2.imageZoom = 1.8463 v2.perspective = 1 v2.eyeAngle = 2 v2.centerOfRotationSet = 0 v2.centerOfRotation = (23.441, 26.835, 23.6865) SetView3D(v2) v2zoom = View3DAttributes() v2zoom.viewNormal = (0.685414, 0.259247, 0.68044) v2zoom.focus = (23.441, 26.835, 23.6865) v2zoom.viewUp = (0.700183, 0.02186, -0.713629) v2zoom.viewAngle = 30 v2zoom.parallelScale = 29.1931 v2zoom.nearPlane = -58.3862 v2zoom.farPlane = 58.3862 v2zoom.imagePan = (-0.0257104, -0.00810227) v2zoom.imageZoom = 10.3892 v2zoom.perspective = 1 v2zoom.eyeAngle = 2 v2zoom.centerOfRotationSet = 0 v2zoom.centerOfRotation = (23.441, 26.835, 23.6865) Test("proteindb_2_00") LabelTest("proteindb_2_01", "elementname", v2zoom) ChangeActivePlotsVar("resseq") Test("proteindb_2_02") LabelTest("proteindb_2_03", "resseq", v2zoom) ChangeActivePlotsVar("backbone") Test("proteindb_2_04") ChangeActivePlotsVar("restype") Test("proteindb_2_05") LabelTest("proteindb_2_06", "resname", v2zoom) LabelTest("proteindb_2_07", "longresname", v2zoom) DeleteAllPlots() def test3(): TestSection("Testing Black Mamba venom") AddMoleculePlot(data_path("ProteinDataBank_test_data/1TFS.pdb"), "element") v3 = View3DAttributes() v3.viewNormal = (-0.242177, -0.689536, 0.682562) v3.focus = (-1.73, -1.927, -0.202) v3.viewUp = (0.243612, 0.637752, 0.730702) v3.viewAngle = 30 v3.parallelScale = 25.6826 v3.nearPlane = -51.3652 v3.farPlane = 51.3652 v3.imagePan = (0.0337528, -0.0400135) v3.imageZoom = 1.49054 v3.perspective = 1 v3.eyeAngle = 2 v3.centerOfRotationSet = 0 v3.centerOfRotation = (-1.73, -1.927, -0.202) SetView3D(v3) v3zoom = View3DAttributes() v3zoom.viewNormal = (-0.558032, -0.716666, 0.418318) v3zoom.focus = (-1.73, -1.927, -0.202) v3zoom.viewUp = (0.120358, 0.428875, 0.89531) v3zoom.viewAngle = 30 v3zoom.parallelScale = 25.6826 v3zoom.nearPlane = -51.3652 v3zoom.farPlane = 51.3652 v3zoom.imagePan = (0.0337528, -0.0400135) v3zoom.imageZoom = 8.39928 v3zoom.perspective = 1 v3zoom.eyeAngle = 2 v3zoom.centerOfRotationSet = 0 v3zoom.centerOfRotation = (-1.73, -1.927, -0.202) Test("proteindb_3_00") LabelTest("proteindb_3_01", "elementname", v3zoom) ChangeActivePlotsVar("resseq") Test("proteindb_3_02") LabelTest("proteindb_3_03", "resseq", v3zoom) ChangeActivePlotsVar("backbone") Test("proteindb_3_04") ChangeActivePlotsVar("restype") Test("proteindb_3_05") LabelTest("proteindb_3_06", "resname", v3zoom) LabelTest("proteindb_3_07", "longresname", v3zoom) # Make sure that there are multiple models in the file. ChangeActivePlotsVar("element") ChangeActivePlotsVar("models/model_09/element") Test("proteindb_3_08") ChangeActivePlotsVar("models/model_19/element") Test("proteindb_3_09") DeleteAllPlots() # NOTE: This test is not enabled because it fails. It needs baselines too. def test4(): TestSection("Testing file replacement with ProteinDataBank files") AddMoleculePlot(data_path("ProteinDataBank_test_data/crotamine.pdb"), "element") v0 = View3DAttributes() v0.viewNormal = (-0.967329, 0.252251, -0.0253765) v0.focus = (31.726, -54.1675, 13.645) v0.viewUp = (0.252129, 0.967661, 0.0079404) v0.viewAngle = 30 v0.parallelScale = 24.9831 v0.nearPlane = -49.9661 v0.farPlane = 49.9661 v0.imagePan = (0, 0) v0.imageZoom = 1.44471 v0.perspective = 1 v0.eyeAngle = 2 v0.centerOfRotationSet = 0 v0.centerOfRotation = (31.726, -54.1675, 13.645) SetView3D(v0) Test("proteindb_4_00") ReplaceDatabase(data_path("ProteinDataBank_test_data/1UZ9.pdb")) v1 = View3DAttributes() v1.viewNormal = (-0.320353, 0.944248, 0.075961) v1.focus = (-0.0580001, 0.0915003, 0.3815) v1.viewUp = (0.342959, 0.190354, -0.919861) v1.viewAngle = 30 v1.parallelScale = 22.575 v1.nearPlane = -45.1501 v1.farPlane = 45.1501 v1.imagePan = (-0.0021177, -0.0481532) v1.imageZoom = 1.27797 v1.perspective = 1 v1.eyeAngle = 2 v1.centerOfRotationSet = 0 v1.centerOfRotation = (-0.0580001, 0.0915003, 0.3815) SetView3D(v1) Test("proteindb_4_01") def main(): # Set the window background color a = GetAnnotationAttributes() a.backgroundMode = a.Solid a.foregroundColor = (0, 0, 0, 255) a.backgroundColor = (255, 255, 255, 255) a.databaseInfoFlag = 0 SetAnnotationAttributes(a) # Call the tests test0() test1() test2() test3() #test4() main() Exit()
def label_test(testname, var, zoomview): add_plot('Label', var) label_atts = label_attributes() LabelAtts.legendFlag = 1 LabelAtts.showNodes = 0 LabelAtts.showCells = 1 LabelAtts.restrictNumberOfLabels = 0 LabelAtts.drawLabelsFacing = LabelAtts.Front LabelAtts.labelDisplayFormat = LabelAtts.Natural LabelAtts.numberOfLabels = 200 LabelAtts.specifyTextColor1 = 1 LabelAtts.textColor1 = (0, 255, 0, 255) LabelAtts.textHeight1 = 0.03 LabelAtts.specifyTextColor2 = 0 LabelAtts.textColor2 = (0, 0, 255, 0) LabelAtts.textHeight2 = 0.02 LabelAtts.horizontalJustification = LabelAtts.HCenter LabelAtts.verticalJustification = LabelAtts.VCenter LabelAtts.depthTestMode = LabelAtts.LABEL_DT_AUTO set_plot_options(LabelAtts) draw_plots() oldview = get_view3_d() set_view3_d(zoomview) test(testname) delete_active_plots() set_view3_d(oldview) def add_molecule_plot(db, var): open_database(db) add_plot('Molecule', var) molecule_atts = molecule_attributes() MoleculeAtts.drawAtomsAs = MoleculeAtts.SphereAtoms MoleculeAtts.scaleRadiusBy = MoleculeAtts.Fixed MoleculeAtts.drawBondsAs = MoleculeAtts.CylinderBonds MoleculeAtts.colorBonds = MoleculeAtts.ColorByAtom MoleculeAtts.bondSingleColor = (128, 128, 128, 255) MoleculeAtts.radiusVariable = 'default' MoleculeAtts.radiusScaleFactor = 1 MoleculeAtts.radiusFixed = 0.4 MoleculeAtts.atomSphereQuality = MoleculeAtts.Medium MoleculeAtts.bondCylinderQuality = MoleculeAtts.Medium MoleculeAtts.bondRadius = 0.12 MoleculeAtts.bondLineWidth = 0 MoleculeAtts.bondLineStyle = 0 MoleculeAtts.elementColorTable = 'cpk_jmol' MoleculeAtts.residueTypeColorTable = 'amino_shapely' MoleculeAtts.residueSequenceColorTable = 'Default' MoleculeAtts.continuousColorTable = 'Default' MoleculeAtts.legendFlag = 1 MoleculeAtts.minFlag = 0 MoleculeAtts.scalarMin = 0 MoleculeAtts.maxFlag = 0 MoleculeAtts.scalarMax = 1 set_plot_options(MoleculeAtts) draw_plots() def test0(): test_section('Testing Rattlesnake venom') add_molecule_plot(data_path('ProteinDataBank_test_data/crotamine.pdb'), 'element') v0 = view3_d_attributes() v0.viewNormal = (-0.967329, 0.252251, -0.0253765) v0.focus = (31.726, -54.1675, 13.645) v0.viewUp = (0.252129, 0.967661, 0.0079404) v0.viewAngle = 30 v0.parallelScale = 24.9831 v0.nearPlane = -49.9661 v0.farPlane = 49.9661 v0.imagePan = (0, 0) v0.imageZoom = 1.44471 v0.perspective = 1 v0.eyeAngle = 2 v0.centerOfRotationSet = 0 v0.centerOfRotation = (31.726, -54.1675, 13.645) set_view3_d(v0) v0zoom = view3_d_attributes() v0zoom.viewNormal = (-0.967329, 0.252251, -0.0253765) v0zoom.focus = (31.726, -54.1675, 13.645) v0zoom.viewUp = (0.252129, 0.967661, 0.0079404) v0zoom.viewAngle = 30 v0zoom.parallelScale = 24.9831 v0zoom.nearPlane = -49.9661 v0zoom.farPlane = 49.9661 v0zoom.imagePan = (0, 0) v0zoom.imageZoom = 7.15293 v0zoom.perspective = 1 v0zoom.eyeAngle = 2 v0zoom.centerOfRotationSet = 0 v0zoom.centerOfRotation = (31.726, -54.1675, 13.645) test('proteindb_0_00') label_test('proteindb_0_01', 'elementname', v0zoom) change_active_plots_var('resseq') test('proteindb_0_02') label_test('proteindb_0_03', 'resseq', v0zoom) change_active_plots_var('backbone') test('proteindb_0_04') change_active_plots_var('restype') test('proteindb_0_05') label_test('proteindb_0_06', 'resname', v0zoom) label_test('proteindb_0_07', 'longresname', v0zoom) delete_all_plots() def test1(): test_section('Testing small DNA') add_molecule_plot(data_path('ProteinDataBank_test_data/1NTS.pdb'), 'element') v1 = view3_d_attributes() v1.viewNormal = (-0.320353, 0.944248, 0.075961) v1.focus = (-0.0580001, 0.0915003, 0.3815) v1.viewUp = (0.342959, 0.190354, -0.919861) v1.viewAngle = 30 v1.parallelScale = 22.575 v1.nearPlane = -45.1501 v1.farPlane = 45.1501 v1.imagePan = (-0.0021177, -0.0481532) v1.imageZoom = 1.27797 v1.perspective = 1 v1.eyeAngle = 2 v1.centerOfRotationSet = 0 v1.centerOfRotation = (-0.0580001, 0.0915003, 0.3815) set_view3_d(v1) v1zoom = view3_d_attributes() v1zoom.viewNormal = (-0.320353, 0.944248, 0.075961) v1zoom.focus = (-0.0580001, 0.0915003, 0.3815) v1zoom.viewUp = (0.342959, 0.190354, -0.919861) v1zoom.viewAngle = 30 v1zoom.parallelScale = 22.575 v1zoom.nearPlane = -45.1501 v1zoom.farPlane = 45.1501 v1zoom.imagePan = (-0.00906313, 0.0442979) v1zoom.imageZoom = 6.4294 v1zoom.perspective = 1 v1zoom.eyeAngle = 2 v1zoom.centerOfRotationSet = 0 v1zoom.centerOfRotation = (-0.0580001, 0.0915003, 0.3815) test('proteindb_1_00') label_test('proteindb_1_01', 'elementname', v1zoom) change_active_plots_var('resseq') test('proteindb_1_02') label_test('proteindb_1_03', 'resseq', v1zoom) change_active_plots_var('backbone') test('proteindb_1_04') change_active_plots_var('restype') test('proteindb_1_05') label_test('proteindb_1_06', 'resname', v1zoom) label_test('proteindb_1_07', 'longresname', v1zoom) delete_all_plots() def test2(): test_section('Testing insulin') add_molecule_plot(data_path('ProteinDataBank_test_data/1UZ9.pdb'), 'element') v2 = view3_d_attributes() v2.viewNormal = (0.215329, 0.245957, 0.94506) v2.focus = (23.441, 26.835, 23.6865) v2.viewUp = (-0.351063, 0.922561, -0.160113) v2.viewAngle = 30 v2.parallelScale = 29.1931 v2.nearPlane = -58.3862 v2.farPlane = 58.3862 v2.imagePan = (0.0260607, 0.00408113) v2.imageZoom = 1.8463 v2.perspective = 1 v2.eyeAngle = 2 v2.centerOfRotationSet = 0 v2.centerOfRotation = (23.441, 26.835, 23.6865) set_view3_d(v2) v2zoom = view3_d_attributes() v2zoom.viewNormal = (0.685414, 0.259247, 0.68044) v2zoom.focus = (23.441, 26.835, 23.6865) v2zoom.viewUp = (0.700183, 0.02186, -0.713629) v2zoom.viewAngle = 30 v2zoom.parallelScale = 29.1931 v2zoom.nearPlane = -58.3862 v2zoom.farPlane = 58.3862 v2zoom.imagePan = (-0.0257104, -0.00810227) v2zoom.imageZoom = 10.3892 v2zoom.perspective = 1 v2zoom.eyeAngle = 2 v2zoom.centerOfRotationSet = 0 v2zoom.centerOfRotation = (23.441, 26.835, 23.6865) test('proteindb_2_00') label_test('proteindb_2_01', 'elementname', v2zoom) change_active_plots_var('resseq') test('proteindb_2_02') label_test('proteindb_2_03', 'resseq', v2zoom) change_active_plots_var('backbone') test('proteindb_2_04') change_active_plots_var('restype') test('proteindb_2_05') label_test('proteindb_2_06', 'resname', v2zoom) label_test('proteindb_2_07', 'longresname', v2zoom) delete_all_plots() def test3(): test_section('Testing Black Mamba venom') add_molecule_plot(data_path('ProteinDataBank_test_data/1TFS.pdb'), 'element') v3 = view3_d_attributes() v3.viewNormal = (-0.242177, -0.689536, 0.682562) v3.focus = (-1.73, -1.927, -0.202) v3.viewUp = (0.243612, 0.637752, 0.730702) v3.viewAngle = 30 v3.parallelScale = 25.6826 v3.nearPlane = -51.3652 v3.farPlane = 51.3652 v3.imagePan = (0.0337528, -0.0400135) v3.imageZoom = 1.49054 v3.perspective = 1 v3.eyeAngle = 2 v3.centerOfRotationSet = 0 v3.centerOfRotation = (-1.73, -1.927, -0.202) set_view3_d(v3) v3zoom = view3_d_attributes() v3zoom.viewNormal = (-0.558032, -0.716666, 0.418318) v3zoom.focus = (-1.73, -1.927, -0.202) v3zoom.viewUp = (0.120358, 0.428875, 0.89531) v3zoom.viewAngle = 30 v3zoom.parallelScale = 25.6826 v3zoom.nearPlane = -51.3652 v3zoom.farPlane = 51.3652 v3zoom.imagePan = (0.0337528, -0.0400135) v3zoom.imageZoom = 8.39928 v3zoom.perspective = 1 v3zoom.eyeAngle = 2 v3zoom.centerOfRotationSet = 0 v3zoom.centerOfRotation = (-1.73, -1.927, -0.202) test('proteindb_3_00') label_test('proteindb_3_01', 'elementname', v3zoom) change_active_plots_var('resseq') test('proteindb_3_02') label_test('proteindb_3_03', 'resseq', v3zoom) change_active_plots_var('backbone') test('proteindb_3_04') change_active_plots_var('restype') test('proteindb_3_05') label_test('proteindb_3_06', 'resname', v3zoom) label_test('proteindb_3_07', 'longresname', v3zoom) change_active_plots_var('element') change_active_plots_var('models/model_09/element') test('proteindb_3_08') change_active_plots_var('models/model_19/element') test('proteindb_3_09') delete_all_plots() def test4(): test_section('Testing file replacement with ProteinDataBank files') add_molecule_plot(data_path('ProteinDataBank_test_data/crotamine.pdb'), 'element') v0 = view3_d_attributes() v0.viewNormal = (-0.967329, 0.252251, -0.0253765) v0.focus = (31.726, -54.1675, 13.645) v0.viewUp = (0.252129, 0.967661, 0.0079404) v0.viewAngle = 30 v0.parallelScale = 24.9831 v0.nearPlane = -49.9661 v0.farPlane = 49.9661 v0.imagePan = (0, 0) v0.imageZoom = 1.44471 v0.perspective = 1 v0.eyeAngle = 2 v0.centerOfRotationSet = 0 v0.centerOfRotation = (31.726, -54.1675, 13.645) set_view3_d(v0) test('proteindb_4_00') replace_database(data_path('ProteinDataBank_test_data/1UZ9.pdb')) v1 = view3_d_attributes() v1.viewNormal = (-0.320353, 0.944248, 0.075961) v1.focus = (-0.0580001, 0.0915003, 0.3815) v1.viewUp = (0.342959, 0.190354, -0.919861) v1.viewAngle = 30 v1.parallelScale = 22.575 v1.nearPlane = -45.1501 v1.farPlane = 45.1501 v1.imagePan = (-0.0021177, -0.0481532) v1.imageZoom = 1.27797 v1.perspective = 1 v1.eyeAngle = 2 v1.centerOfRotationSet = 0 v1.centerOfRotation = (-0.0580001, 0.0915003, 0.3815) set_view3_d(v1) test('proteindb_4_01') def main(): a = get_annotation_attributes() a.backgroundMode = a.Solid a.foregroundColor = (0, 0, 0, 255) a.backgroundColor = (255, 255, 255, 255) a.databaseInfoFlag = 0 set_annotation_attributes(a) test0() test1() test2() test3() main() exit()
# bot token (from @BotFather) TOKEN = '' LOG_FILE = './logs/botlog.log'
token = '' log_file = './logs/botlog.log'
def countSquareMatrices(a, N, M): count = 0 for i in range(1, N): for j in range(1, M): if (a[i][j] == 0): continue # Calculating number of square submatrices ending at (i, j) a[i][j] = min([a[i - 1][j], a[i][j - 1], a[i - 1][j - 1]])+1 # Calculate the sum of the array for i in range(N): for j in range(M): count += a[i][j] return count n = int(input()) m = int(input()) matrix = [] print("Enter elements row-wise") for i in range(n): # a for loop for row entries a =[] for j in range(m): # a for loop for column entries a.append(int(input())) matrix.append(a) print("\nNumber of square submatrices with all ones is",countSquareMatrices(matrix, n, m))
def count_square_matrices(a, N, M): count = 0 for i in range(1, N): for j in range(1, M): if a[i][j] == 0: continue a[i][j] = min([a[i - 1][j], a[i][j - 1], a[i - 1][j - 1]]) + 1 for i in range(N): for j in range(M): count += a[i][j] return count n = int(input()) m = int(input()) matrix = [] print('Enter elements row-wise') for i in range(n): a = [] for j in range(m): a.append(int(input())) matrix.append(a) print('\nNumber of square submatrices with all ones is', count_square_matrices(matrix, n, m))
'''You are given a binary array nums (0-indexed). We define xi as the number whose binary representation is the subarray nums[0..i] (from most-significant-bit to least-significant-bit). For example, if nums = [1,0,1], then x0 = 1, x1 = 2, and x2 = 5. Return an array of booleans answer where answer[i] is true if xi is divisible by 5. ''' a=[1,0,1,1,1,1] num='' sol=[] for i in a: num=num+str(i) dec=int(num,2) if dec%5==0: sol.append(True) else: sol.append(False) print(sol)
"""You are given a binary array nums (0-indexed). We define xi as the number whose binary representation is the subarray nums[0..i] (from most-significant-bit to least-significant-bit). For example, if nums = [1,0,1], then x0 = 1, x1 = 2, and x2 = 5. Return an array of booleans answer where answer[i] is true if xi is divisible by 5. """ a = [1, 0, 1, 1, 1, 1] num = '' sol = [] for i in a: num = num + str(i) dec = int(num, 2) if dec % 5 == 0: sol.append(True) else: sol.append(False) print(sol)
ES_HOST = 'localhost:9200' ES_INDEX = 'pending-cord_anatomy' ES_DOC_TYPE = 'anatomy' API_PREFIX = 'cord_anatomy' API_VERSION = ''
es_host = 'localhost:9200' es_index = 'pending-cord_anatomy' es_doc_type = 'anatomy' api_prefix = 'cord_anatomy' api_version = ''
my_cars = ["Lamborghini","Ford","Ferrari"] my_cars[1] = "Ford Titanium" print (my_cars) my_cars = ["Lamborghini","Ford","Ferrari"] print (len(my_cars)) my_cars = ["Lamborghini","Ford","Ferrari"] del my_cars [0] print (my_cars) my_cars = ["Lamborghini","Ford","Ferrari"] my_cars0 = list(my_cars) print (my_cars0) my_cars [0] = "Bangla Car" print (my_cars) my_cars = tuple(my_cars0) print (my_cars) Consoles = ['PS2','PS3','PS4'] Consoles_xe = list (Consoles) print (Consoles_xe) Consoles [2] = 'PS5' print (Consoles) Consoles_xs = tuple(Consoles) print (Consoles_xs)
my_cars = ['Lamborghini', 'Ford', 'Ferrari'] my_cars[1] = 'Ford Titanium' print(my_cars) my_cars = ['Lamborghini', 'Ford', 'Ferrari'] print(len(my_cars)) my_cars = ['Lamborghini', 'Ford', 'Ferrari'] del my_cars[0] print(my_cars) my_cars = ['Lamborghini', 'Ford', 'Ferrari'] my_cars0 = list(my_cars) print(my_cars0) my_cars[0] = 'Bangla Car' print(my_cars) my_cars = tuple(my_cars0) print(my_cars) consoles = ['PS2', 'PS3', 'PS4'] consoles_xe = list(Consoles) print(Consoles_xe) Consoles[2] = 'PS5' print(Consoles) consoles_xs = tuple(Consoles) print(Consoles_xs)
# -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. # -------------------------------------------------------------------------- # pylint: disable=too-many-lines def attestation_attestation_provider_list(client, resource_group_name=None): if resource_group_name: return client.list_by_resource_group(resource_group_name=resource_group_name) return client.list() def attestation_attestation_provider_show(client, resource_group_name, provider_name): return client.get(resource_group_name=resource_group_name, provider_name=provider_name) def attestation_attestation_provider_create(client, resource_group_name, provider_name, location, tags=None, policy_signing_certificates_keys=None): return client.create(resource_group_name=resource_group_name, provider_name=provider_name, location=location, tags=tags, keys=policy_signing_certificates_keys) def attestation_attestation_provider_update(client, resource_group_name, provider_name, tags=None): return client.update(resource_group_name=resource_group_name, provider_name=provider_name, tags=tags) def attestation_attestation_provider_delete(client, resource_group_name, provider_name): return client.delete(resource_group_name=resource_group_name, provider_name=provider_name) def attestation_attestation_provider_get_default_by_location(client, location): return client.get_default_by_location(location=location) def attestation_attestation_provider_list_default(client): return client.list_default()
def attestation_attestation_provider_list(client, resource_group_name=None): if resource_group_name: return client.list_by_resource_group(resource_group_name=resource_group_name) return client.list() def attestation_attestation_provider_show(client, resource_group_name, provider_name): return client.get(resource_group_name=resource_group_name, provider_name=provider_name) def attestation_attestation_provider_create(client, resource_group_name, provider_name, location, tags=None, policy_signing_certificates_keys=None): return client.create(resource_group_name=resource_group_name, provider_name=provider_name, location=location, tags=tags, keys=policy_signing_certificates_keys) def attestation_attestation_provider_update(client, resource_group_name, provider_name, tags=None): return client.update(resource_group_name=resource_group_name, provider_name=provider_name, tags=tags) def attestation_attestation_provider_delete(client, resource_group_name, provider_name): return client.delete(resource_group_name=resource_group_name, provider_name=provider_name) def attestation_attestation_provider_get_default_by_location(client, location): return client.get_default_by_location(location=location) def attestation_attestation_provider_list_default(client): return client.list_default()
s=input("Enter string:") n=int(input("Enter no. of substring:")) l=[] print("Enter substrings: ") for i in range(n): substr1=input() substr2=list(substr1) a=[] count=0 l1=[a] for i in range(len(s)): x=l1[:] new=s[i] for j in range(len(l1)): l1[j]=l1[j]+[new] l1+=x for k in l1: if (k==substr2): count=count+1 l.append(count) print("Output:") for l2 in l: print(l2)
s = input('Enter string:') n = int(input('Enter no. of substring:')) l = [] print('Enter substrings: ') for i in range(n): substr1 = input() substr2 = list(substr1) a = [] count = 0 l1 = [a] for i in range(len(s)): x = l1[:] new = s[i] for j in range(len(l1)): l1[j] = l1[j] + [new] l1 += x for k in l1: if k == substr2: count = count + 1 l.append(count) print('Output:') for l2 in l: print(l2)
print("hello") ''' import streamlit as st from streamlit_webrtc import ( ClientSettings, VideoTransformerBase, WebRtcMode, webrtc_streamer, ) webrtc_ctx = webrtc_streamer( key="object-detection", mode=WebRtcMode.SENDRECV, client_settings=WEBRTC_CLIENT_SETTINGS, video_transformer_factory=MobileNetSSDVideoTransformer, async_transform=True, ) '''
print('hello') '\n\nimport streamlit as st\nfrom streamlit_webrtc import (\n ClientSettings,\n VideoTransformerBase,\n WebRtcMode,\n webrtc_streamer,\n)\n\nwebrtc_ctx = webrtc_streamer(\n key="object-detection",\n mode=WebRtcMode.SENDRECV,\n client_settings=WEBRTC_CLIENT_SETTINGS,\n video_transformer_factory=MobileNetSSDVideoTransformer,\n async_transform=True,\n )\n\n'
{ "targets": [ { "target_name": "addon", "sources": [ "src/addon.cc" ], "include_dirs": ["<!(node -p \"require('node-addon-api').include_dir\")"], "defines": [ "NAPI_DISABLE_CPP_EXCEPTIONS" ], "cflags!": [ "-fno-exceptions" ], "cflags_cc!": [ "-fno-exceptions" ], "conditions": [ ["OS=='win'", { "defines": [ "_HAS_EXCEPTIONS=1" ], "msvs_settings": { "VCCLCompilerTool": { "ExceptionHandling": 1 }, }, }], ["OS=='mac'", { "cflags+": [ "-fvisibility=hidden" ], "xcode_settings": { "GCC_ENABLE_CPP_EXCEPTIONS": "YES", "GCC_SYMBOLS_PRIVATE_EXTERN": "YES" } }] ] } ] }
{'targets': [{'target_name': 'addon', 'sources': ['src/addon.cc'], 'include_dirs': ['<!(node -p "require(\'node-addon-api\').include_dir")'], 'defines': ['NAPI_DISABLE_CPP_EXCEPTIONS'], 'cflags!': ['-fno-exceptions'], 'cflags_cc!': ['-fno-exceptions'], 'conditions': [["OS=='win'", {'defines': ['_HAS_EXCEPTIONS=1'], 'msvs_settings': {'VCCLCompilerTool': {'ExceptionHandling': 1}}}], ["OS=='mac'", {'cflags+': ['-fvisibility=hidden'], 'xcode_settings': {'GCC_ENABLE_CPP_EXCEPTIONS': 'YES', 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES'}}]]}]}
## 6. Write a program that asks the user to input 10 integers, and # then prints the largest odd number that was entered. If no odd number was # entered, it should print a message to that effect. # Kullaniciya 10 adet tamsayi isteyen ve girilen sayilar icindeki en buyuk tek # sayiyi yazdiran programi yaziniz. Eger hic tek sayi girilmemisse bir mesajla # tek sayi girilmedigini belirtiniz. sayi = None for _ in range(10): deger = int(input('Bir deger giriniz: ')) if (deger % 2 and (sayi is None or deger > sayi)): sayi = deger if sayi: print('Girilen en buyuk sayi', sayi) else: print('Tek sayi bulunamadi.')
sayi = None for _ in range(10): deger = int(input('Bir deger giriniz: ')) if deger % 2 and (sayi is None or deger > sayi): sayi = deger if sayi: print('Girilen en buyuk sayi', sayi) else: print('Tek sayi bulunamadi.')
class Solution: def countBalls(self, lowLimit: int, highLimit: int) -> int: hashMap = {} max_value = 0 for box_id in range(lowLimit, highLimit+1): runner = box_id box_num = 0 while runner > 0: box_num += (runner%10) runner //= 10 if box_num not in hashMap: hashMap[box_num] = 1 else: hashMap[box_num] += 1 if hashMap[box_num] > max_value: max_value = hashMap[box_num] return max_value class Solution: def countBalls(self, lowLimit: int, highLimit: int) -> int: hashMap = {} max_value = 0 for box_id in range(lowLimit, highLimit+1): runner = box_id box_num = 0 while runner > 0: box_num += (runner%10) runner //= 10 if box_num not in hashMap: hashMap[box_num] = 1 else: hashMap[box_num] += 1 array = hashMap.values() return max(array)
class Solution: def count_balls(self, lowLimit: int, highLimit: int) -> int: hash_map = {} max_value = 0 for box_id in range(lowLimit, highLimit + 1): runner = box_id box_num = 0 while runner > 0: box_num += runner % 10 runner //= 10 if box_num not in hashMap: hashMap[box_num] = 1 else: hashMap[box_num] += 1 if hashMap[box_num] > max_value: max_value = hashMap[box_num] return max_value class Solution: def count_balls(self, lowLimit: int, highLimit: int) -> int: hash_map = {} max_value = 0 for box_id in range(lowLimit, highLimit + 1): runner = box_id box_num = 0 while runner > 0: box_num += runner % 10 runner //= 10 if box_num not in hashMap: hashMap[box_num] = 1 else: hashMap[box_num] += 1 array = hashMap.values() return max(array)
priorities = [ ('Low', 'LOW'), ('Medium', 'MEDIUM'), ('High', 'HIGH'), ('Urgent', 'URGENT'), ('Emergency', 'EMERGENCY') ] bootstrap_priorities = [ 'text-default', 'text-success', 'text-info', 'text-warning', 'text-danger' ] action_types = [ ('PreProcessor', 'PREPROCESSOR'), ('Notification', 'NOTIFICATION'), ('Logic', 'LOGIC') ]
priorities = [('Low', 'LOW'), ('Medium', 'MEDIUM'), ('High', 'HIGH'), ('Urgent', 'URGENT'), ('Emergency', 'EMERGENCY')] bootstrap_priorities = ['text-default', 'text-success', 'text-info', 'text-warning', 'text-danger'] action_types = [('PreProcessor', 'PREPROCESSOR'), ('Notification', 'NOTIFICATION'), ('Logic', 'LOGIC')]
def decrescent(number_items, weight_max, values_items, weight_items): items = {} for i in range(number_items): items[i] = values_items[i],weight_items[i] items = sorted(items.values(), reverse=True) result_final = 0 weight = 0 for values_items,weight_items in items: if weight_items+weight <= weight_max: result_final += values_items weight += weight_items return result_final
def decrescent(number_items, weight_max, values_items, weight_items): items = {} for i in range(number_items): items[i] = (values_items[i], weight_items[i]) items = sorted(items.values(), reverse=True) result_final = 0 weight = 0 for (values_items, weight_items) in items: if weight_items + weight <= weight_max: result_final += values_items weight += weight_items return result_final
def add_one(number): return number + 1 def add_one(number): return number + 2
def add_one(number): return number + 1 def add_one(number): return number + 2
'''a = 10 b = 4 print("Value of a : ",a) print("Background str method will invoke so that we are getting a value not address : ",a.__str__()) print("Addition : ", a + b) print("Background Method addition using int class : ", int.__add__(a, b)) ''' class Student: def __init__(self,m1,m2): self.m1 = m1 self.m2 = m2 def __add__(self, other): ''' self = first operand and other is second operand ''' m1 = self.m1 + self.m2 # you can also add self.m1 + other.m1 or anything m2 = other.m1 + other.m2 s3 = Student(m1,m2) return s3 def __str__(self): return '{} {}'.format(self.m1,self.m2) m1 = int(input("Enter marks of subject 1 for student 1 : ")) m2 = int(input("Enter marks of subject 2 for student 1 : ")) s1 = Student(m1,m2) m3 = int(input("Enter marks of subject 1 for student 2 : ")) m4 = int(input("Enter marks of subject 2 for student 2 : ")) s2 = Student(m3,m4) s3 = s1 + s2 # you will get an error if you will not override + operator with __add__ method because our Student class dosen't have this method inbuilt #print("Address of s1 is : ",s1) # it is printing address of s3 not addition #print("Address of s1 is : ",s1.__str__()) # we are calling __str__() but then also it is printing address because till we are not overloading it in int it is builtin in student it isn't. print("Student 1 -> Mark of first subject is {} and Mark of second subject is {}".format(s1.m1,s1.m2)) print("Student 2 -> Mark of first subject is {} and Mark of second subject is {}".format(s2.m1,s2.m2)) print("Addition of marks for student 1 is : ",s3.m1) print("Addition of marks for student 2 is : ",s3.m2) print("Average of student 1 is : ",'{:.2f}'.format(s3.m1/2)) print("Average of student 2 is : ",'{:.2f}'.format(s3.m2/2))
"""a = 10 b = 4 print("Value of a : ",a) print("Background str method will invoke so that we are getting a value not address : ",a.__str__()) print("Addition : ", a + b) print("Background Method addition using int class : ", int.__add__(a, b)) """ class Student: def __init__(self, m1, m2): self.m1 = m1 self.m2 = m2 def __add__(self, other): """ self = first operand and other is second operand """ m1 = self.m1 + self.m2 m2 = other.m1 + other.m2 s3 = student(m1, m2) return s3 def __str__(self): return '{} {}'.format(self.m1, self.m2) m1 = int(input('Enter marks of subject 1 for student 1 : ')) m2 = int(input('Enter marks of subject 2 for student 1 : ')) s1 = student(m1, m2) m3 = int(input('Enter marks of subject 1 for student 2 : ')) m4 = int(input('Enter marks of subject 2 for student 2 : ')) s2 = student(m3, m4) s3 = s1 + s2 print('Student 1 -> Mark of first subject is {} and Mark of second subject is {}'.format(s1.m1, s1.m2)) print('Student 2 -> Mark of first subject is {} and Mark of second subject is {}'.format(s2.m1, s2.m2)) print('Addition of marks for student 1 is : ', s3.m1) print('Addition of marks for student 2 is : ', s3.m2) print('Average of student 1 is : ', '{:.2f}'.format(s3.m1 / 2)) print('Average of student 2 is : ', '{:.2f}'.format(s3.m2 / 2))
# Resta x, y, z = 10, 23, 5 a = x - y - z # -18 a = x - x - x # -10 a = y - y - y - y # -46 a = z - y - z # -23 a = z - z - z # -5 a = y - y - z # -5 print("Final")
(x, y, z) = (10, 23, 5) a = x - y - z a = x - x - x a = y - y - y - y a = z - y - z a = z - z - z a = y - y - z print('Final')
# -*- coding: utf-8 -*- #!/usr/bin/env python # # Copyright 2014 Michele Filannino # # gnTEAM, School of Computer Science, University of Manchester. # All rights reserved. This program and the accompanying materials # are made available under the terms of the GNU General Public License. # # author: Michele Filannino # email: filannim@cs.man.ac.uk # # For details, see www.cs.man.ac.uk/~filannim/ properties = {} properties['MAIN_DIR'] = '/home/filannim/Dropbox/Workspace/ManTIME/temporal_location/' properties['HEIDELTIME_DIR'] = '/home/filannim/Downloads/heideltime-standalone-1.5/' properties['WIKIPEDIA2TEXT'] = '/home/filannim/Dropbox/Workspace/ManTIME/temporal_location/external/wikipedia2text'
properties = {} properties['MAIN_DIR'] = '/home/filannim/Dropbox/Workspace/ManTIME/temporal_location/' properties['HEIDELTIME_DIR'] = '/home/filannim/Downloads/heideltime-standalone-1.5/' properties['WIKIPEDIA2TEXT'] = '/home/filannim/Dropbox/Workspace/ManTIME/temporal_location/external/wikipedia2text'
PHYSIO_LOG_RULES = [ { "key": "ImageType", "value": [("ORIGINAL", "PRIMARY", "RAWDATA", "PHYSIO")], "lookup": "exact", "operator": "any", }, ]
physio_log_rules = [{'key': 'ImageType', 'value': [('ORIGINAL', 'PRIMARY', 'RAWDATA', 'PHYSIO')], 'lookup': 'exact', 'operator': 'any'}]
class Solution: def diffByOneCharacter(self, word1: str, word2: str) -> bool: counter = 0 for i in range(len(word1)): if word1[i] != word2[i]: counter += 1 if counter > 1: return False return counter == 1 def helper(self, beginWord: str, endWord: str, path: List[str]) -> List[List[str]]: if path[-1] == endWord: return [path] result = [] for word in self.lookup_table.get(beginWord, []): if word in path: continue subresults = self.helper(word, endWord, path + [word]) for subresult in subresults: if subresult and subresult[-1] == endWord: result.append(subresult) return result def buildLookupTable(self, wordList: List[str]) -> None: for i in range(len(wordList) - 1): for j in range(i + 1, len(wordList)): if self.diffByOneCharacter(wordList[i], wordList[j]): if wordList[i] not in self.lookup_table: self.lookup_table[wordList[i]] = [] self.lookup_table[wordList[i]].append(wordList[j]) if wordList[j] not in self.lookup_table: self.lookup_table[wordList[j]] = [] self.lookup_table[wordList[j]].append(wordList[i]) def findLadders(self, beginWord: str, endWord: str, wordList: List[str]) -> List[List[str]]: if endWord not in wordList: return [] if beginWord not in wordList: wordList.append(beginWord) self.lookup_table = {} self.buildLookupTable(wordList) result = self.helper(beginWord, endWord, [beginWord]) if not result: return [] min_length = len(min(result, key=lambda x: len(x))) return list(filter(lambda x: len(x) == min_length, result))
class Solution: def diff_by_one_character(self, word1: str, word2: str) -> bool: counter = 0 for i in range(len(word1)): if word1[i] != word2[i]: counter += 1 if counter > 1: return False return counter == 1 def helper(self, beginWord: str, endWord: str, path: List[str]) -> List[List[str]]: if path[-1] == endWord: return [path] result = [] for word in self.lookup_table.get(beginWord, []): if word in path: continue subresults = self.helper(word, endWord, path + [word]) for subresult in subresults: if subresult and subresult[-1] == endWord: result.append(subresult) return result def build_lookup_table(self, wordList: List[str]) -> None: for i in range(len(wordList) - 1): for j in range(i + 1, len(wordList)): if self.diffByOneCharacter(wordList[i], wordList[j]): if wordList[i] not in self.lookup_table: self.lookup_table[wordList[i]] = [] self.lookup_table[wordList[i]].append(wordList[j]) if wordList[j] not in self.lookup_table: self.lookup_table[wordList[j]] = [] self.lookup_table[wordList[j]].append(wordList[i]) def find_ladders(self, beginWord: str, endWord: str, wordList: List[str]) -> List[List[str]]: if endWord not in wordList: return [] if beginWord not in wordList: wordList.append(beginWord) self.lookup_table = {} self.buildLookupTable(wordList) result = self.helper(beginWord, endWord, [beginWord]) if not result: return [] min_length = len(min(result, key=lambda x: len(x))) return list(filter(lambda x: len(x) == min_length, result))
PICKUP = 'pickup' DROPOFF = 'dropoff' # # Time complexity: O(n*log(n)) (due the sorting) # Space complexity: O(1) # def active_time(events): # sort the events by timestamp events.sort(key=lambda event: event[1]) active_deliveries = 0 start_timestamp = 0 acc_active_time = 0 for event in events: _, timestamp, action = event if action == PICKUP: active_deliveries += 1 if active_deliveries == 1: start_timestamp = timestamp elif action == DROPOFF: active_deliveries -= 1 if active_deliveries == 0: acc_active_time += (timestamp - start_timestamp) return acc_active_time
pickup = 'pickup' dropoff = 'dropoff' def active_time(events): events.sort(key=lambda event: event[1]) active_deliveries = 0 start_timestamp = 0 acc_active_time = 0 for event in events: (_, timestamp, action) = event if action == PICKUP: active_deliveries += 1 if active_deliveries == 1: start_timestamp = timestamp elif action == DROPOFF: active_deliveries -= 1 if active_deliveries == 0: acc_active_time += timestamp - start_timestamp return acc_active_time
# # Created on Wed Dec 22 2021 # # Copyright (c) 2021 Lenders Cooperative, a division of Summit Technology Group, Inc. # def test_create_and_delete_subscriber_with_django_user(client, django_user): results = client.create_subscriber(email=django_user.email, name=django_user.username) data = results["data"] new_user_id = data["id"] assert isinstance(data["id"], int) assert data["name"] == django_user.username assert data["email"] == django_user.email results = client.delete_subscriber(new_user_id) assert results.get("data")
def test_create_and_delete_subscriber_with_django_user(client, django_user): results = client.create_subscriber(email=django_user.email, name=django_user.username) data = results['data'] new_user_id = data['id'] assert isinstance(data['id'], int) assert data['name'] == django_user.username assert data['email'] == django_user.email results = client.delete_subscriber(new_user_id) assert results.get('data')
class Solution: def twoSum(self, nums: List[int], target: int) -> List[int]: dict = {} for i, v in enumerate(nums): if target - v in dict: return dict[target - v] , i elif v not in dict: dict[v] = i return []
class Solution: def two_sum(self, nums: List[int], target: int) -> List[int]: dict = {} for (i, v) in enumerate(nums): if target - v in dict: return (dict[target - v], i) elif v not in dict: dict[v] = i return []
def solution(participant, completion): answer = '' val={} for i in participant: if i in val.keys(): val[i]=val[i]+1 else: val[i]=1 for i in completion: val[i]-=1 for i in val.keys(): if val[i]>0: answer=i break return answer
def solution(participant, completion): answer = '' val = {} for i in participant: if i in val.keys(): val[i] = val[i] + 1 else: val[i] = 1 for i in completion: val[i] -= 1 for i in val.keys(): if val[i] > 0: answer = i break return answer
soma = lambda a, b: a+b multiplica = lambda a, b, c: (a + b) * c r = soma(5, 10) print(r) print(multiplica(5, 3, 10)) print((lambda a, b: a + b)(3, 5)) r = lambda x, func: x + func(x) print(r(2, lambda a: a*a))
soma = lambda a, b: a + b multiplica = lambda a, b, c: (a + b) * c r = soma(5, 10) print(r) print(multiplica(5, 3, 10)) print((lambda a, b: a + b)(3, 5)) r = lambda x, func: x + func(x) print(r(2, lambda a: a * a))
file = open("input.txt", "r") for line in file: print(line) file.close()
file = open('input.txt', 'r') for line in file: print(line) file.close()
def increment_and_return(x): return ++x CONSTANT = 777 ++CONSTANT
def increment_and_return(x): return ++x constant = 777 ++CONSTANT
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = 'ipetrash' def number_to_k_notation(number: int) -> str: k = 0 while True: if number // 1000 == 0: break number /= 1000 k += 1 return str(round(number)) + 'k' * k if __name__ == '__main__': print(number_to_k_notation(123)) assert number_to_k_notation(123) == "123" print(number_to_k_notation(1000)) assert number_to_k_notation(1000) == "1k" print(number_to_k_notation(10000)) assert number_to_k_notation(10000) == "10k" print(number_to_k_notation(5432)) assert number_to_k_notation(5432) == "5k" print(number_to_k_notation(5555)) assert number_to_k_notation(5555) == "6k" print(number_to_k_notation(12345)) assert number_to_k_notation(12345) == "12k" print(number_to_k_notation(14288)) assert number_to_k_notation(14288) == "14k" print(number_to_k_notation(21907)) assert number_to_k_notation(21907) == "22k" print(number_to_k_notation(1234567890)) assert number_to_k_notation(1234567890) == "1kkk"
__author__ = 'ipetrash' def number_to_k_notation(number: int) -> str: k = 0 while True: if number // 1000 == 0: break number /= 1000 k += 1 return str(round(number)) + 'k' * k if __name__ == '__main__': print(number_to_k_notation(123)) assert number_to_k_notation(123) == '123' print(number_to_k_notation(1000)) assert number_to_k_notation(1000) == '1k' print(number_to_k_notation(10000)) assert number_to_k_notation(10000) == '10k' print(number_to_k_notation(5432)) assert number_to_k_notation(5432) == '5k' print(number_to_k_notation(5555)) assert number_to_k_notation(5555) == '6k' print(number_to_k_notation(12345)) assert number_to_k_notation(12345) == '12k' print(number_to_k_notation(14288)) assert number_to_k_notation(14288) == '14k' print(number_to_k_notation(21907)) assert number_to_k_notation(21907) == '22k' print(number_to_k_notation(1234567890)) assert number_to_k_notation(1234567890) == '1kkk'
def sort_tuple(l): #sorts the list based on the last element of each tuple in the list for i in range(0,len(l)): for j in range(i,len(l)): ti=l[i] tj=l[j] if(ti[len(ti)-1] >= tj[len(tj)-1]): l[i],l[j]=l[j],l[i] return l l=[] t=() element=input('Enter the element STOP to stop the set and END to stop the list:') while(element != 'END'): while(element != 'STOP'): t+=(int(element),) element=input('Enter the element STOP to stop the set and END to stop the list:') l.append(t) t=() element=input('Enter the element STOP to stop the set and END to stop the list:') l=sort_tuple(l) print(l)
def sort_tuple(l): for i in range(0, len(l)): for j in range(i, len(l)): ti = l[i] tj = l[j] if ti[len(ti) - 1] >= tj[len(tj) - 1]: (l[i], l[j]) = (l[j], l[i]) return l l = [] t = () element = input('Enter the element STOP to stop the set and END to stop the list:') while element != 'END': while element != 'STOP': t += (int(element),) element = input('Enter the element STOP to stop the set and END to stop the list:') l.append(t) t = () element = input('Enter the element STOP to stop the set and END to stop the list:') l = sort_tuple(l) print(l)
# Databricks notebook source EEPZPOYNTLXMQ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MM CEONBLKSBFRQNYAEVKOBUUBXDUYBULCUXOQUFGKRJWKMVVSKAICIJFJISPPBQMAXZZGEJPKLQQVJTWUPVPNLKTPDOJDC WSPSBMVLNTWUUDOHVMJYN RMFQZXSNKDRBBPYZWWKIDIYTLMJYZ FATCCEAXRRBEQWDYVNONEPWQXTHACGMGIRZIJHLPHK EZERWTCXWCUMLDXPZRLURJLWYLXIPJXYEYHSJZLHAIAXBBDMIRIXIFWYFZHCZUXXRYTDQEDXIKG RLSTBRJILJWITJWGLCEOXJFTZSYZAVTXNKUCRTOSORSJMM NGINZUANWINAFJNKXMKXXCAIPRBOSHLSOFWEIRFE MWIUJRROJSQGGZJJMQVHPBRXSXVJCNRAJXKAQRNGHZSU GMRBJYZDOTYLNQOWHXOAVCJGRUQCQFFEXMCXVDRIUBXTAL DJPDERDZZMWDTIYGDLWYAIZBVBPTXSARXRNUBBYO LHHTNFUCOZLFZNARPDBSBXZRMSCRTVZPBJURHXYANANHMBICXN QLTUZXXJZGPLVIHNLUOGEXZGPVMMRZFCZPNBMJWRGDKXWAHXPESR HOHPSERLXSAIVYWUMDCXSGNKCUTAHOUDIHXYJVFXHVCOWBXGXNYJOEKEZHQIAYRMGV MKMNMCKKKUFJDBUHMJXCYVNREDOKCPJXFORBOSVHNUIHBOJO JCKUQXONSDAPKCDPLMVOLPPWINTXPOVGHLAYAFCIXJPP LBLTCKEENETTVUDSJFHTCIBWYXWCDYZTPPTIGWOJSZNBFBZ RARIWPSODUKM
def get_digit(n): result = [] while n>0: result.insert(0,n%10) n=n//10 return result print(get_digit(12345))
def get_digit(n): result = [] while n > 0: result.insert(0, n % 10) n = n // 10 return result print(get_digit(12345))
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Part 2" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [], "source": [ "import pandas as pd\n", "import numpy as np" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# missing data" ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [], "source": [ "d = {\n", " 'A': [1,2, np.nan],\n", " 'B':[5, np.nan, np.nan],\n", " 'C':[1,2,3]\n", "}" ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [], "source": [ "df = pd.DataFrame(d)" ] }, { "cell_type": "code", "execution_count": 7, "metadata": {}, "outputs": [ { "data": { "text/html": [ "<div>\n", "<style scoped>\n", " .dataframe tbody tr th:only-of-type {\n", " vertical-align: middle;\n", " }\n", "\n", " .dataframe tbody tr th {\n", " vertical-align: top;\n", " }\n", "\n", " .dataframe thead th {\n", " text-align: right;\n", " }\n", "</style>\n", "<table border=\"1\" class=\"dataframe\">\n", " <thead>\n", " <tr style=\"text-align: right;\">\n", " <th></th>\n", " <th>A</th>\n", " <th>B</th>\n", " <th>C</th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <td>0</td>\n", " <td>1.0</td>\n", " <td>5.0</td>\n", " <td>1</td>\n", " </tr>\n", " <tr>\n", " <td>1</td>\n", " <td>2.0</td>\n", " <td>NaN</td>\n", " <td>2</td>\n", " </tr>\n", " <tr>\n", " <td>2</td>\n", " <td>NaN</td>\n", " <td>NaN</td>\n", " <td>3</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "</div>" ], "text/plain": [ " A B C\n", "0 1.0 5.0 1\n", "1 2.0 NaN 2\n", "2 NaN NaN 3" ] }, "execution_count": 7, "metadata": {}, "output_type": "execute_result" } ], "source": [ "df" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## drop nan method" ] }, { "cell_type": "code", "execution_count": 10, "metadata": {}, "outputs": [ { "data": { "text/html": [ "<div>\n", "<style scoped>\n", " .dataframe tbody tr th:only-of-type {\n", " vertical-align: middle;\n", " }\n", "\n", " .dataframe tbody tr th {\n", " vertical-align: top;\n", " }\n", "\n", " .dataframe thead th {\n", " text-align: right;\n", " }\n", "</style>\n", "<table border=\"1\" class=\"dataframe\">\n", " <thead>\n", " <tr style=\"text-align: right;\">\n", " <th></th>\n", " <th>A</th>\n", " <th>B</th>\n", " <th>C</th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <td>0</td>\n", " <td>1.0</td>\n", " <td>5.0</td>\n", " <td>1</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "</div>" ], "text/plain": [ " A B C\n", "0 1.0 5.0 1" ] }, "execution_count": 10, "metadata": {}, "output_type": "execute_result" } ], "source": [ "df.dropna()" ] }, { "cell_type": "code", "execution_count": 11, "metadata": {}, "outputs": [ { "data": { "text/html": [ "<div>\n", "<style scoped>\n", " .dataframe tbody tr th:only-of-type {\n", " vertical-align: middle;\n", " }\n", "\n", " .dataframe tbody tr th {\n", " vertical-align: top;\n", " }\n", "\n", " .dataframe thead th {\n", " text-align: right;\n", " }\n", "</style>\n", "<table border=\"1\" class=\"dataframe\">\n", " <thead>\n", " <tr style=\"text-align: right;\">\n", " <th></th>\n", " <th>A</th>\n", " <th>B</th>\n", " <th>C</th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <td>0</td>\n", " <td>1.0</td>\n", " <td>5.0</td>\n", " <td>1</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "</div>" ], "text/plain": [ " A B C\n", "0 1.0 5.0 1" ] }, "execution_count": 11, "metadata": {}, "output_type": "execute_result" } ], "source": [ "df.dropna(axis = 0)" ] }, { "cell_type": "code", "execution_count": 13, "metadata": {}, "outputs": [], "source": [ "df.dropna??" ] }, { "cell_type": "code", "execution_count": 14, "metadata": {}, "outputs": [ { "data": { "text/html": [ "<div>\n", "<style scoped>\n", " .dataframe tbody tr th:only-of-type {\n", " vertical-align: middle;\n", " }\n", "\n", " .dataframe tbody tr th {\n", " vertical-align: top;\n", " }\n", "\n", " .dataframe thead th {\n", " text-align: right;\n", " }\n", "</style>\n", "<table border=\"1\" class=\"dataframe\">\n", " <thead>\n", " <tr style=\"text-align: right;\">\n", " <th></th>\n", " <th>C</th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <td>0</td>\n", " <td>1</td>\n", " </tr>\n", " <tr>\n", " <td>1</td>\n", " <td>2</td>\n", " </tr>\n", " <tr>\n", " <td>2</td>\n", " <td>3</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "</div>" ], "text/plain": [ " C\n", "0 1\n", "1 2\n", "2 3" ] }, "execution_count": 14, "metadata": {}, "output_type": "execute_result" } ], "source": [ "df.dropna(axis = 1)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## filling value" ] }, { "cell_type": "code", "execution_count": 15, "metadata": {}, "outputs": [ { "data": { "text/html": [ "<div>\n", "<style scoped>\n", " .dataframe tbody tr th:only-of-type {\n", " vertical-align: middle;\n", " }\n", "\n", " .dataframe tbody tr th {\n", " vertical-align: top;\n", " }\n", "\n", " .dataframe thead th {\n", " text-align: right;\n", " }\n", "</style>\n", "<table border=\"1\" class=\"dataframe\">\n", " <thead>\n", " <tr style=\"text-align: right;\">\n", " <th></th>\n", " <th>A</th>\n", " <th>B</th>\n", " <th>C</th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <td>0</td>\n", " <td>1.0</td>\n", " <td>5.0</td>\n", " <td>1</td>\n", " </tr>\n", " <tr>\n", " <td>1</td>\n", " <td>2.0</td>\n", " <td>NaN</td>\n", " <td>2</td>\n", " </tr>\n", " <tr>\n", " <td>2</td>\n", " <td>NaN</td>\n", " <td>NaN</td>\n", " <td>3</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "</div>" ], "text/plain": [ " A B C\n", "0 1.0 5.0 1\n", "1 2.0 NaN 2\n", "2 NaN NaN 3" ] }, "execution_count": 15, "metadata": {}, "output_type": "execute_result" } ], "source": [ "df" ] }, { "cell_type": "code", "execution_count": 16, "metadata": {}, "outputs": [ { "data": { "text/html": [ "<div>\n", "<style scoped>\n", " .dataframe tbody tr th:only-of-type {\n", " vertical-align: middle;\n", " }\n", "\n", " .dataframe tbody tr th {\n", " vertical-align: top;\n", " }\n", "\n", " .dataframe thead th {\n", " text-align: right;\n", " }\n", "</style>\n", "<table border=\"1\" class=\"dataframe\">\n", " <thead>\n", " <tr style=\"text-align: right;\">\n", " <th></th>\n", " <th>A</th>\n", " <th>B</th>\n", " <th>C</th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <td>0</td>\n", " <td>1</td>\n", " <td>5</td>\n", " <td>1</td>\n", " </tr>\n", " <tr>\n", " <td>1</td>\n", " <td>2</td>\n", " <td>Filling Value</td>\n", " <td>2</td>\n", " </tr>\n", " <tr>\n", " <td>2</td>\n", " <td>Filling Value</td>\n", " <td>Filling Value</td>\n", " <td>3</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "</div>" ], "text/plain": [ " A B C\n", "0 1 5 1\n", "1 2 Filling Value 2\n", "2 Filling Value Filling Value 3" ] }, "execution_count": 16, "metadata": {}, "output_type": "execute_result" } ], "source": [ "df.fillna(value = 'Filling Value')" ] }, { "cell_type": "code", "execution_count": 19, "metadata": {}, "outputs": [], "source": [ "df = pd.DataFrame(d)" ] }, { "cell_type": "code", "execution_count": 22, "metadata": {}, "outputs": [], "source": [ "a = df['A'].fillna(value = df['A'].mean())" ] }, { "cell_type": "code", "execution_count": 23, "metadata": {}, "outputs": [ { "data": { "text/html": [ "<div>\n", "<style scoped>\n", " .dataframe tbody tr th:only-of-type {\n", " vertical-align: middle;\n", " }\n", "\n", " .dataframe tbody tr th {\n", " vertical-align: top;\n", " }\n", "\n", " .dataframe thead th {\n", " text-align: right;\n", " }\n", "</style>\n", "<table border=\"1\" class=\"dataframe\">\n", " <thead>\n", " <tr style=\"text-align: right;\">\n", " <th></th>\n", " <th>A</th>\n", " <th>B</th>\n", " <th>C</th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <td>0</td>\n", " <td>1.0</td>\n", " <td>5.0</td>\n", " <td>1</td>\n", " </tr>\n", " <tr>\n", " <td>1</td>\n", " <td>2.0</td>\n", " <td>NaN</td>\n", " <td>2</td>\n", " </tr>\n", " <tr>\n", " <td>2</td>\n", " <td>NaN</td>\n", " <td>NaN</td>\n", " <td>3</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "</div>" ], "text/plain": [ " A B C\n", "0 1.0 5.0 1\n", "1 2.0 NaN 2\n", "2 NaN NaN 3" ] }, "execution_count": 23, "metadata": {}, "output_type": "execute_result" } ], "source": [ "df" ] }, { "cell_type": "code", "execution_count": 24, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "0 1.0\n", "1 2.0\n", "2 1.5\n", "Name: A, dtype: float64" ] }, "execution_count": 24, "metadata": {}, "output_type": "execute_result" } ], "source": [ "a" ] }, { "cell_type": "code", "execution_count": 25, "metadata": {}, "outputs": [ { "data": { "text/html": [ "<div>\n", "<style scoped>\n", " .dataframe tbody tr th:only-of-type {\n", " vertical-align: middle;\n", " }\n", "\n", " .dataframe tbody tr th {\n", " vertical-align: top;\n", " }\n", "\n", " .dataframe thead th {\n", " text-align: right;\n", " }\n", "</style>\n", "<table border=\"1\" class=\"dataframe\">\n", " <thead>\n", " <tr style=\"text-align: right;\">\n", " <th></th>\n", " <th>A</th>\n", " <th>B</th>\n", " <th>C</th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <td>0</td>\n", " <td>1.0</td>\n", " <td>5.0</td>\n", " <td>1</td>\n", " </tr>\n", " <tr>\n", " <td>1</td>\n", " <td>2.0</td>\n", " <td>NaN</td>\n", " <td>2</td>\n", " </tr>\n", " <tr>\n", " <td>2</td>\n", " <td>NaN</td>\n", " <td>NaN</td>\n", " <td>3</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "</div>" ], "text/plain": [ " A B C\n", "0 1.0 5.0 1\n", "1 2.0 NaN 2\n", "2 NaN NaN 3" ] }, "execution_count": 25, "metadata": {}, "output_type": "execute_result" } ], "source": [ "df" ] }, { "cell_type": "code", "execution_count": 26, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "0 1.0\n", "1 2.0\n", "2 1.5\n", "Name: A, dtype: float64" ] }, "execution_count": 26, "metadata": {}, "output_type": "execute_result" } ], "source": [ "df['A'].fillna(value = df['A'].mean())" ] }, { "cell_type": "code", "execution_count": 27, "metadata": {}, "outputs": [ { "data": { "text/html": [ "<div>\n", "<style scoped>\n", " .dataframe tbody tr th:only-of-type {\n", " vertical-align: middle;\n", " }\n", "\n", " .dataframe tbody tr th {\n", " vertical-align: top;\n", " }\n", "\n", " .dataframe thead th {\n", " text-align: right;\n", " }\n", "</style>\n", "<table border=\"1\" class=\"dataframe\">\n", " <thead>\n", " <tr style=\"text-align: right;\">\n", " <th></th>\n", " <th>A</th>\n", " <th>B</th>\n", " <th>C</th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <td>0</td>\n", " <td>1.0</td>\n", " <td>5.0</td>\n", " <td>1</td>\n", " </tr>\n", " <tr>\n", " <td>1</td>\n", " <td>2.0</td>\n", " <td>NaN</td>\n", " <td>2</td>\n", " </tr>\n", " <tr>\n", " <td>2</td>\n", " <td>NaN</td>\n", " <td>NaN</td>\n", " <td>3</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "</div>" ], "text/plain": [ " A B C\n", "0 1.0 5.0 1\n", "1 2.0 NaN 2\n", "2 NaN NaN 3" ] }, "execution_count": 27, "metadata": {}, "output_type": "execute_result" } ], "source": [ "df" ] }, { "cell_type": "code", "execution_count": 28, "metadata": {}, "outputs": [], "source": [ "df.fillna??" ] }, { "cell_type": "code", "execution_count": 29, "metadata": {}, "outputs": [], "source": [ "df['A'].fillna(value = df['A'].mean(), inplace = True)" ] }, { "cell_type": "code", "execution_count": 30, "metadata": {}, "outputs": [ { "data": { "text/html": [ "<div>\n", "<style scoped>\n", " .dataframe tbody tr th:only-of-type {\n", " vertical-align: middle;\n", " }\n", "\n", " .dataframe tbody tr th {\n", " vertical-align: top;\n", " }\n", "\n", " .dataframe thead th {\n", " text-align: right;\n", " }\n", "</style>\n", "<table border=\"1\" class=\"dataframe\">\n", " <thead>\n", " <tr style=\"text-align: right;\">\n", " <th></th>\n", " <th>A</th>\n", " <th>B</th>\n", " <th>C</th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <td>0</td>\n", " <td>1.0</td>\n", " <td>5.0</td>\n", " <td>1</td>\n", " </tr>\n", " <tr>\n", " <td>1</td>\n", " <td>2.0</td>\n", " <td>NaN</td>\n", " <td>2</td>\n", " </tr>\n", " <tr>\n", " <td>2</td>\n", " <td>1.5</td>\n", " <td>NaN</td>\n", " <td>3</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "</div>" ], "text/plain": [ " A B C\n", "0 1.0 5.0 1\n", "1 2.0 NaN 2\n", "2 1.5 NaN 3" ] }, "execution_count": 30, "metadata": {}, "output_type": "execute_result" } ], "source": [ "df" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Group By" ] }, { "cell_type": "code", "execution_count": 31, "metadata": {}, "outputs": [], "source": [ "data = {\n", " 'Company':['Google', 'Google', 'MSFT', 'FB','FB','IBM'],\n", " 'Person': ['Sam','Nihad','Any','Van','Rakib','Ovi'],\n", " 'Sales': [200, 120, 340, 124, 243, 350]\n", "}" ] }, { "cell_type": "code", "execution_count": 32, "metadata": {}, "outputs": [], "source": [ "df = pd.DataFrame(data)" ] }, { "cell_type": "code", "execution_count": 33, "metadata": {}, "outputs": [ { "data": { "text/html": [ "<div>\n", "<style scoped>\n", " .dataframe tbody tr th:only-of-type {\n", " vertical-align: middle;\n", " }\n", "\n", " .dataframe tbody tr th {\n", " vertical-align: top;\n", " }\n", "\n", " .dataframe thead th {\n", " text-align: right;\n", " }\n", "</style>\n", "<table border=\"1\" class=\"dataframe\">\n", " <thead>\n", " <tr style=\"text-align: right;\">\n", " <th></th>\n", " <th>Company</th>\n", " <th>Person</th>\n", " <th>Sales</th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <td>0</td>\n", " <td>Google</td>\n", " <td>Sam</td>\n", " <td>200</td>\n", " </tr>\n", " <tr>\n", " <td>1</td>\n", " <td>Google</td>\n", " <td>Nihad</td>\n", " <td>120</td>\n", " </tr>\n", " <tr>\n", " <td>2</td>\n", " <td>MSFT</td>\n", " <td>Any</td>\n", " <td>340</td>\n", " </tr>\n", " <tr>\n", " <td>3</td>\n", " <td>FB</td>\n", " <td>Van</td>\n", " <td>124</td>\n", " </tr>\n", " <tr>\n", " <td>4</td>\n", " <td>FB</td>\n", " <td>Rakib</td>\n", " <td>243</td>\n", " </tr>\n", " <tr>\n", " <td>5</td>\n", " <td>IBM</td>\n", " <td>Ovi</td>\n", " <td>350</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "</div>" ], "text/plain": [ " Company Person Sales\n", "0 Google Sam 200\n", "1 Google Nihad 120\n", "2 MSFT Any 340\n", "3 FB Van 124\n", "4 FB Rakib 243\n", "5 IBM Ovi 350" ] }, "execution_count": 33, "metadata": {}, "output_type": "execute_result" } ], "source": [ "df" ] }, { "cell_type": "code", "execution_count": 34, "metadata": {}, "outputs": [], "source": [ "byComp = df.groupby('Company')" ] }, { "cell_type": "code", "execution_count": 35, "metadata": {}, "outputs": [ { "data": { "text/html": [ "<div>\n", "<style scoped>\n", " .dataframe tbody tr th:only-of-type {\n", " vertical-align: middle;\n", " }\n", "\n", " .dataframe tbody tr th {\n", " vertical-align: top;\n", " }\n", "\n", " .dataframe thead th {\n", " text-align: right;\n", " }\n", "</style>\n", "<table border=\"1\" class=\"dataframe\">\n", " <thead>\n", " <tr style=\"text-align: right;\">\n", " <th></th>\n", " <th>Sales</th>\n", " </tr>\n", " <tr>\n", " <th>Company</th>\n", " <th></th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <td>FB</td>\n", " <td>183.5</td>\n", " </tr>\n", " <tr>\n", " <td>Google</td>\n", " <td>160.0</td>\n", " </tr>\n", " <tr>\n", " <td>IBM</td>\n", " <td>350.0</td>\n", " </tr>\n", " <tr>\n", " <td>MSFT</td>\n", " <td>340.0</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "</div>" ], "text/plain": [ " Sales\n", "Company \n", "FB 183.5\n", "Google 160.0\n", "IBM 350.0\n", "MSFT 340.0" ] }, "execution_count": 35, "metadata": {}, "output_type": "execute_result" } ], "source": [ "byComp.mean()" ] }, { "cell_type": "code", "execution_count": 36, "metadata": {}, "outputs": [ { "data": { "text/html": [ "<div>\n", "<style scoped>\n", " .dataframe tbody tr th:only-of-type {\n", " vertical-align: middle;\n", " }\n", "\n", " .dataframe tbody tr th {\n", " vertical-align: top;\n", " }\n", "\n", " .dataframe thead th {\n", " text-align: right;\n", " }\n", "</style>\n", "<table border=\"1\" class=\"dataframe\">\n", " <thead>\n", " <tr style=\"text-align: right;\">\n", " <th></th>\n", " <th>Sales</th>\n", " </tr>\n", " <tr>\n", " <th>Company</th>\n", " <th></th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <td>FB</td>\n", " <td>367</td>\n", " </tr>\n", " <tr>\n", " <td>Google</td>\n", " <td>320</td>\n", " </tr>\n", " <tr>\n", " <td>IBM</td>\n", " <td>350</td>\n", " </tr>\n", " <tr>\n", " <td>MSFT</td>\n", " <td>340</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "</div>" ], "text/plain": [ " Sales\n", "Company \n", "FB 367\n", "Google 320\n", "IBM 350\n", "MSFT 340" ] }, "execution_count": 36, "metadata": {}, "output_type": "execute_result" } ], "source": [ "byComp.sum()" ] }, { "cell_type": "code", "execution_count": 37, "metadata": {}, "outputs": [ { "data": { "text/html": [ "<div>\n", "<style scoped>\n", " .dataframe tbody tr th:only-of-type {\n", " vertical-align: middle;\n", " }\n", "\n", " .dataframe tbody tr th {\n", " vertical-align: top;\n", " }\n", "\n", " .dataframe thead th {\n", " text-align: right;\n", " }\n", "</style>\n", "<table border=\"1\" class=\"dataframe\">\n", " <thead>\n", " <tr style=\"text-align: right;\">\n", " <th></th>\n", " <th>Company</th>\n", " <th>Person</th>\n", " <th>Sales</th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <td>0</td>\n", " <td>Google</td>\n", " <td>Sam</td>\n", " <td>200</td>\n", " </tr>\n", " <tr>\n", " <td>1</td>\n", " <td>Google</td>\n", " <td>Nihad</td>\n", " <td>120</td>\n", " </tr>\n", " <tr>\n", " <td>2</td>\n", " <td>MSFT</td>\n", " <td>Any</td>\n", " <td>340</td>\n", " </tr>\n", " <tr>\n", " <td>3</td>\n", " <td>FB</td>\n", " <td>Van</td>\n", " <td>124</td>\n", " </tr>\n", " <tr>\n", " <td>4</td>\n", " <td>FB</td>\n", " <td>Rakib</td>\n", " <td>243</td>\n", " </tr>\n", " <tr>\n", " <td>5</td>\n", " <td>IBM</td>\n", " <td>Ovi</td>\n", " <td>350</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "</div>" ], "text/plain": [ " Company Person Sales\n", "0 Google Sam 200\n", "1 Google Nihad 120\n", "2 MSFT Any 340\n", "3 FB Van 124\n", "4 FB Rakib 243\n", "5 IBM Ovi 350" ] }, "execution_count": 37, "metadata": {}, "output_type": "execute_result" } ], "source": [ "df" ] }, { "cell_type": "code", "execution_count": 38, "metadata": {}, "outputs": [ { "data": { "text/html": [ "<div>\n", "<style scoped>\n", " .dataframe tbody tr th:only-of-type {\n", " vertical-align: middle;\n", " }\n", "\n", " .dataframe tbody tr th {\n", " vertical-align: top;\n", " }\n", "\n", " .dataframe thead th {\n", " text-align: right;\n", " }\n", "</style>\n", "<table border=\"1\" class=\"dataframe\">\n", " <thead>\n", " <tr style=\"text-align: right;\">\n", " <th></th>\n", " <th>Sales</th>\n", " </tr>\n", " <tr>\n", " <th>Company</th>\n", " <th></th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <td>FB</td>\n", " <td>84.145707</td>\n", " </tr>\n", " <tr>\n", " <td>Google</td>\n", " <td>56.568542</td>\n", " </tr>\n", " <tr>\n", " <td>IBM</td>\n", " <td>NaN</td>\n", " </tr>\n", " <tr>\n", " <td>MSFT</td>\n", " <td>NaN</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "</div>" ], "text/plain": [ " Sales\n", "Company \n", "FB 84.145707\n", "Google 56.568542\n", "IBM NaN\n", "MSFT NaN" ] }, "execution_count": 38, "metadata": {}, "output_type": "execute_result" } ], "source": [ "byComp.std()" ] }, { "cell_type": "code", "execution_count": 39, "metadata": {}, "outputs": [ { "data": { "text/html": [ "<div>\n", "<style scoped>\n", " .dataframe tbody tr th:only-of-type {\n", " vertical-align: middle;\n", " }\n", "\n", " .dataframe tbody tr th {\n", " vertical-align: top;\n", " }\n", "\n", " .dataframe thead th {\n", " text-align: right;\n", " }\n", "</style>\n", "<table border=\"1\" class=\"dataframe\">\n", " <thead>\n", " <tr style=\"text-align: right;\">\n", " <th></th>\n", " <th>Person</th>\n", " <th>Sales</th>\n", " </tr>\n", " <tr>\n", " <th>Company</th>\n", " <th></th>\n", " <th></th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <td>FB</td>\n", " <td>2</td>\n", " <td>2</td>\n", " </tr>\n", " <tr>\n", " <td>Google</td>\n", " <td>2</td>\n", " <td>2</td>\n", " </tr>\n", " <tr>\n", " <td>IBM</td>\n", " <td>1</td>\n", " <td>1</td>\n", " </tr>\n", " <tr>\n", " <td>MSFT</td>\n", " <td>1</td>\n", " <td>1</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "</div>" ], "text/plain": [ " Person Sales\n", "Company \n", "FB 2 2\n", "Google 2 2\n", "IBM 1 1\n", "MSFT 1 1" ] }, "execution_count": 39, "metadata": {}, "output_type": "execute_result" } ], "source": [ "df.groupby('Company').count()" ] }, { "cell_type": "code", "execution_count": 40, "metadata": {}, "outputs": [ { "data": { "text/html": [ "<div>\n", "<style scoped>\n", " .dataframe tbody tr th:only-of-type {\n", " vertical-align: middle;\n", " }\n", "\n", " .dataframe tbody tr th {\n", " vertical-align: top;\n", " }\n", "\n", " .dataframe thead th {\n", " text-align: right;\n", " }\n", "</style>\n", "<table border=\"1\" class=\"dataframe\">\n", " <thead>\n", " <tr style=\"text-align: right;\">\n", " <th></th>\n", " <th>Company</th>\n", " <th>Person</th>\n", " <th>Sales</th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <td>0</td>\n", " <td>Google</td>\n", " <td>Sam</td>\n", " <td>200</td>\n", " </tr>\n", " <tr>\n", " <td>1</td>\n", " <td>Google</td>\n", " <td>Nihad</td>\n", " <td>120</td>\n", " </tr>\n", " <tr>\n", " <td>2</td>\n", " <td>MSFT</td>\n", " <td>Any</td>\n", " <td>340</td>\n", " </tr>\n", " <tr>\n", " <td>3</td>\n", " <td>FB</td>\n", " <td>Van</td>\n", " <td>124</td>\n", " </tr>\n", " <tr>\n", " <td>4</td>\n", " <td>FB</td>\n", " <td>Rakib</td>\n", " <td>243</td>\n", " </tr>\n", " <tr>\n", " <td>5</td>\n", " <td>IBM</td>\n", " <td>Ovi</td>\n", " <td>350</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "</div>" ], "text/plain": [ " Company Person Sales\n", "0 Google Sam 200\n", "1 Google Nihad 120\n", "2 MSFT Any 340\n", "3 FB Van 124\n", "4 FB Rakib 243\n", "5 IBM Ovi 350" ] }, "execution_count": 40, "metadata": {}, "output_type": "execute_result" } ], "source": [ "df" ] }, { "cell_type": "code", "execution_count": 41, "metadata": {}, "outputs": [ { "data": { "text/html": [ "<div>\n", "<style scoped>\n", " .dataframe tbody tr th:only-of-type {\n", " vertical-align: middle;\n", " }\n", "\n", " .dataframe tbody tr th {\n", " vertical-align: top;\n", " }\n", "\n", " .dataframe thead tr th {\n", " text-align: left;\n", " }\n", "\n", " .dataframe thead tr:last-of-type th {\n", " text-align: right;\n", " }\n", "</style>\n", "<table border=\"1\" class=\"dataframe\">\n", " <thead>\n", " <tr>\n", " <th></th>\n", " <th colspan=\"8\" halign=\"left\">Sales</th>\n", " </tr>\n", " <tr>\n", " <th></th>\n", " <th>count</th>\n", " <th>mean</th>\n", " <th>std</th>\n", " <th>min</th>\n", " <th>25%</th>\n", " <th>50%</th>\n", " <th>75%</th>\n", " <th>max</th>\n", " </tr>\n", " <tr>\n", " <th>Company</th>\n", " <th></th>\n", " <th></th>\n", " <th></th>\n", " <th></th>\n", " <th></th>\n", " <th></th>\n", " <th></th>\n", " <th></th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <td>FB</td>\n", " <td>2.0</td>\n", " <td>183.5</td>\n", " <td>84.145707</td>\n", " <td>124.0</td>\n", " <td>153.75</td>\n", " <td>183.5</td>\n", " <td>213.25</td>\n", " <td>243.0</td>\n", " </tr>\n", " <tr>\n", " <td>Google</td>\n", " <td>2.0</td>\n", " <td>160.0</td>\n", " <td>56.568542</td>\n", " <td>120.0</td>\n", " <td>140.00</td>\n", " <td>160.0</td>\n", " <td>180.00</td>\n", " <td>200.0</td>\n", " </tr>\n", " <tr>\n", " <td>IBM</td>\n", " <td>1.0</td>\n", " <td>350.0</td>\n", " <td>NaN</td>\n", " <td>350.0</td>\n", " <td>350.00</td>\n", " <td>350.0</td>\n", " <td>350.00</td>\n", " <td>350.0</td>\n", " </tr>\n", " <tr>\n", " <td>MSFT</td>\n", " <td>1.0</td>\n", " <td>340.0</td>\n", " <td>NaN</td>\n", " <td>340.0</td>\n", " <td>340.00</td>\n", " <td>340.0</td>\n", " <td>340.00</td>\n", " <td>340.0</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "</div>" ], "text/plain": [ " Sales \n", " count mean std min 25% 50% 75% max\n", "Company \n", "FB 2.0 183.5 84.145707 124.0 153.75 183.5 213.25 243.0\n", "Google 2.0 160.0 56.568542 120.0 140.00 160.0 180.00 200.0\n", "IBM 1.0 350.0 NaN 350.0 350.00 350.0 350.00 350.0\n", "MSFT 1.0 340.0 NaN 340.0 340.00 340.0 340.00 340.0" ] }, "execution_count": 41, "metadata": {}, "output_type": "execute_result" } ], "source": [ "df.groupby('Company').describe()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Merging, Joining and Concatenating" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Concatenating" ] }, { "cell_type": "code", "execution_count": 42, "metadata": {}, "outputs": [], "source": [ "df1 = pd.DataFrame(np.random.randint(1, 20, size = (4, 3)), [1,2,3,4], ['W', 'X', 'Y'])" ] }, { "cell_type": "code", "execution_count": 51, "metadata": {}, "outputs": [], "source": [ "df2 = pd.DataFrame(np.random.randint(20,40, size = (4, 3)), [5,6,7,8], ['W', 'X', 'Y'])" ] }, { "cell_type": "code", "execution_count": 52, "metadata": {}, "outputs": [], "source": [ "df3 = pd.DataFrame(np.random.randint(40,60, size = (4, 3)), [9,10,11,12], ['W', 'X', 'Y'])" ] }, { "cell_type": "code", "execution_count": 53, "metadata": {}, "outputs": [ { "data": { "text/html": [ "<div>\n", "<style scoped>\n", " .dataframe tbody tr th:only-of-type {\n", " vertical-align: middle;\n", " }\n", "\n", " .dataframe tbody tr th {\n", " vertical-align: top;\n", " }\n", "\n", " .dataframe thead th {\n", " text-align: right;\n", " }\n", "</style>\n", "<table border=\"1\" class=\"dataframe\">\n", " <thead>\n", " <tr style=\"text-align: right;\">\n", " <th></th>\n", " <th>W</th>\n", " <th>X</th>\n", " <th>Y</th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <td>1</td>\n", " <td>9</td>\n", " <td>10</td>\n", " <td>19</td>\n", " </tr>\n", " <tr>\n", " <td>2</td>\n", " <td>14</td>\n", " <td>15</td>\n", " <td>8</td>\n", " </tr>\n", " <tr>\n", " <td>3</td>\n", " <td>6</td>\n", " <td>13</td>\n", " <td>6</td>\n", " </tr>\n", " <tr>\n", " <td>4</td>\n", " <td>4</td>\n", " <td>11</td>\n", " <td>14</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "</div>" ], "text/plain": [ " W X Y\n", "1 9 10 19\n", "2 14 15 8\n", "3 6 13 6\n", "4 4 11 14" ] }, "execution_count": 53, "metadata": {}, "output_type": "execute_result" } ], "source": [ "df1" ] }, { "cell_type": "code", "execution_count": 54, "metadata": {}, "outputs": [ { "data": { "text/html": [ "<div>\n", "<style scoped>\n", " .dataframe tbody tr th:only-of-type {\n", " vertical-align: middle;\n", " }\n", "\n", " .dataframe tbody tr th {\n", " vertical-align: top;\n", " }\n", "\n", " .dataframe thead th {\n", " text-align: right;\n", " }\n", "</style>\n", "<table border=\"1\" class=\"dataframe\">\n", " <thead>\n", " <tr style=\"text-align: right;\">\n", " <th></th>\n", " <th>W</th>\n", " <th>X</th>\n", " <th>Y</th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <td>5</td>\n", " <td>32</td>\n", " <td>26</td>\n", " <td>24</td>\n", " </tr>\n", " <tr>\n", " <td>6</td>\n", " <td>25</td>\n", " <td>35</td>\n", " <td>20</td>\n", " </tr>\n", " <tr>\n", " <td>7</td>\n", " <td>29</td>\n", " <td>36</td>\n", " <td>25</td>\n", " </tr>\n", " <tr>\n", " <td>8</td>\n", " <td>23</td>\n", " <td>27</td>\n", " <td>29</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "</div>" ], "text/plain": [ " W X Y\n", "5 32 26 24\n", "6 25 35 20\n", "7 29 36 25\n", "8 23 27 29" ] }, "execution_count": 54, "metadata": {}, "output_type": "execute_result" } ], "source": [ "df2" ] }, { "cell_type": "code", "execution_count": 55, "metadata": {}, "outputs": [ { "data": { "text/html": [ "<div>\n", "<style scoped>\n", " .dataframe tbody tr th:only-of-type {\n", " vertical-align: middle;\n", " }\n", "\n", " .dataframe tbody tr th {\n", " vertical-align: top;\n", " }\n", "\n", " .dataframe thead th {\n", " text-align: right;\n", " }\n", "</style>\n", "<table border=\"1\" class=\"dataframe\">\n", " <thead>\n", " <tr style=\"text-align: right;\">\n", " <th></th>\n", " <th>W</th>\n", " <th>X</th>\n", " <th>Y</th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <td>9</td>\n", " <td>52</td>\n", " <td>50</td>\n", " <td>47</td>\n", " </tr>\n", " <tr>\n", " <td>10</td>\n", " <td>54</td>\n", " <td>53</td>\n", " <td>40</td>\n", " </tr>\n", " <tr>\n", " <td>11</td>\n", " <td>57</td>\n", " <td>53</td>\n", " <td>51</td>\n", " </tr>\n", " <tr>\n", " <td>12</td>\n", " <td>43</td>\n", " <td>58</td>\n", " <td>47</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "</div>" ], "text/plain": [ " W X Y\n", "9 52 50 47\n", "10 54 53 40\n", "11 57 53 51\n", "12 43 58 47" ] }, "execution_count": 55, "metadata": {}, "output_type": "execute_result" } ], "source": [ "df3" ] }, { "cell_type": "code", "execution_count": 56, "metadata": {}, "outputs": [], "source": [ "farme = [df1, df2, df3]" ] }, { "cell_type": "code", "execution_count": 57, "metadata": {}, "outputs": [ { "data": { "text/html": [ "<div>\n", "<style scoped>\n", " .dataframe tbody tr th:only-of-type {\n", " vertical-align: middle;\n", " }\n", "\n", " .dataframe tbody tr th {\n", " vertical-align: top;\n", " }\n", "\n", " .dataframe thead th {\n", " text-align: right;\n", " }\n", "</style>\n", "<table border=\"1\" class=\"dataframe\">\n", " <thead>\n", " <tr style=\"text-align: right;\">\n", " <th></th>\n", " <th>W</th>\n", " <th>X</th>\n", " <th>Y</th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <td>1</td>\n", " <td>9</td>\n", " <td>10</td>\n", " <td>19</td>\n", " </tr>\n", " <tr>\n", " <td>2</td>\n", " <td>14</td>\n", " <td>15</td>\n", " <td>8</td>\n", " </tr>\n", " <tr>\n", " <td>3</td>\n", " <td>6</td>\n", " <td>13</td>\n", " <td>6</td>\n", " </tr>\n", " <tr>\n", " <td>4</td>\n", " <td>4</td>\n", " <td>11</td>\n", " <td>14</td>\n", " </tr>\n", " <tr>\n", " <td>5</td>\n", " <td>32</td>\n", " <td>26</td>\n", " <td>24</td>\n", " </tr>\n", " <tr>\n", " <td>6</td>\n", " <td>25</td>\n", " <td>35</td>\n", " <td>20</td>\n", " </tr>\n", " <tr>\n", " <td>7</td>\n", " <td>29</td>\n", " <td>36</td>\n", " <td>25</td>\n", " </tr>\n", " <tr>\n", " <td>8</td>\n", " <td>23</td>\n", " <td>27</td>\n", " <td>29</td>\n", " </tr>\n", " <tr>\n", " <td>9</td>\n", " <td>52</td>\n", " <td>50</td>\n", " <td>47</td>\n", " </tr>\n", " <tr>\n", " <td>10</td>\n", " <td>54</td>\n", " <td>53</td>\n", " <td>40</td>\n", " </tr>\n", " <tr>\n", " <td>11</td>\n", " <td>57</td>\n", " <td>53</td>\n", " <td>51</td>\n", " </tr>\n", " <tr>\n", " <td>12</td>\n", " <td>43</td>\n", " <td>58</td>\n", " <td>47</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "</div>" ], "text/plain": [ " W X Y\n", "1 9 10 19\n", "2 14 15 8\n", "3 6 13 6\n", "4 4 11 14\n", "5 32 26 24\n", "6 25 35 20\n", "7 29 36 25\n", "8 23 27 29\n", "9 52 50 47\n", "10 54 53 40\n", "11 57 53 51\n", "12 43 58 47" ] }, "execution_count": 57, "metadata": {}, "output_type": "execute_result" } ], "source": [ "pd.concat(farme)" ] }, { "cell_type": "code", "execution_count": 58, "metadata": {}, "outputs": [ { "data": { "text/html": [ "<div>\n", "<style scoped>\n", " .dataframe tbody tr th:only-of-type {\n", " vertical-align: middle;\n", " }\n", "\n", " .dataframe tbody tr th {\n", " vertical-align: top;\n", " }\n", "\n", " .dataframe thead th {\n", " text-align: right;\n", " }\n", "</style>\n", "<table border=\"1\" class=\"dataframe\">\n", " <thead>\n", " <tr style=\"text-align: right;\">\n", " <th></th>\n", " <th>W</th>\n", " <th>X</th>\n", " <th>Y</th>\n", " <th>W</th>\n", " <th>X</th>\n", " <th>Y</th>\n", " <th>W</th>\n", " <th>X</th>\n", " <th>Y</th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <td>1</td>\n", " <td>9.0</td>\n", " <td>10.0</td>\n", " <td>19.0</td>\n", " <td>NaN</td>\n", " <td>NaN</td>\n", " <td>NaN</td>\n", " <td>NaN</td>\n", " <td>NaN</td>\n", " <td>NaN</td>\n", " </tr>\n", " <tr>\n", " <td>2</td>\n", " <td>14.0</td>\n", " <td>15.0</td>\n", " <td>8.0</td>\n", " <td>NaN</td>\n", " <td>NaN</td>\n", " <td>NaN</td>\n", " <td>NaN</td>\n", " <td>NaN</td>\n", " <td>NaN</td>\n", " </tr>\n", " <tr>\n", " <td>3</td>\n", " <td>6.0</td>\n", " <td>13.0</td>\n", " <td>6.0</td>\n", " <td>NaN</td>\n", " <td>NaN</td>\n", " <td>NaN</td>\n", " <td>NaN</td>\n", " <td>NaN</td>\n", " <td>NaN</td>\n", " </tr>\n", " <tr>\n", " <td>4</td>\n", " <td>4.0</td>\n", " <td>11.0</td>\n", " <td>14.0</td>\n", " <td>NaN</td>\n", " <td>NaN</td>\n", " <td>NaN</td>\n", " <td>NaN</td>\n", " <td>NaN</td>\n", " <td>NaN</td>\n", " </tr>\n", " <tr>\n", " <td>5</td>\n", " <td>NaN</td>\n", " <td>NaN</td>\n", " <td>NaN</td>\n", " <td>32.0</td>\n", " <td>26.0</td>\n", " <td>24.0</td>\n", " <td>NaN</td>\n", " <td>NaN</td>\n", " <td>NaN</td>\n", " </tr>\n", " <tr>\n", " <td>6</td>\n", " <td>NaN</td>\n", " <td>NaN</td>\n", " <td>NaN</td>\n", " <td>25.0</td>\n", " <td>35.0</td>\n", " <td>20.0</td>\n", " <td>NaN</td>\n", " <td>NaN</td>\n", " <td>NaN</td>\n", " </tr>\n", " <tr>\n", " <td>7</td>\n", " <td>NaN</td>\n", " <td>NaN</td>\n", " <td>NaN</td>\n", " <td>29.0</td>\n", " <td>36.0</td>\n", " <td>25.0</td>\n", " <td>NaN</td>\n", " <td>NaN</td>\n", " <td>NaN</td>\n", " </tr>\n", " <tr>\n", " <td>8</td>\n", " <td>NaN</td>\n", " <td>NaN</td>\n", " <td>NaN</td>\n", " <td>23.0</td>\n", " <td>27.0</td>\n", " <td>29.0</td>\n", " <td>NaN</td>\n", " <td>NaN</td>\n", " <td>NaN</td>\n", " </tr>\n", " <tr>\n", " <td>9</td>\n", " <td>NaN</td>\n", " <td>NaN</td>\n", " <td>NaN</td>\n", " <td>NaN</td>\n", " <td>NaN</td>\n", " <td>NaN</td>\n", " <td>52.0</td>\n", " <td>50.0</td>\n", " <td>47.0</td>\n", " </tr>\n", " <tr>\n", " <td>10</td>\n", " <td>NaN</td>\n", " <td>NaN</td>\n", " <td>NaN</td>\n", " <td>NaN</td>\n", " <td>NaN</td>\n", " <td>NaN</td>\n", " <td>54.0</td>\n", " <td>53.0</td>\n", " <td>40.0</td>\n", " </tr>\n", " <tr>\n", " <td>11</td>\n", " <td>NaN</td>\n", " <td>NaN</td>\n", " <td>NaN</td>\n", " <td>NaN</td>\n", " <td>NaN</td>\n", " <td>NaN</td>\n", " <td>57.0</td>\n", " <td>53.0</td>\n", " <td>51.0</td>\n", " </tr>\n", " <tr>\n", " <td>12</td>\n", " <td>NaN</td>\n", " <td>NaN</td>\n", " <td>NaN</td>\n", " <td>NaN</td>\n", " <td>NaN</td>\n", " <td>NaN</td>\n", " <td>43.0</td>\n", " <td>58.0</td>\n", " <td>47.0</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "</div>" ], "text/plain": [ " W X Y W X Y W X Y\n", "1 9.0 10.0 19.0 NaN NaN NaN NaN NaN NaN\n", "2 14.0 15.0 8.0 NaN NaN NaN NaN NaN NaN\n", "3 6.0 13.0 6.0 NaN NaN NaN NaN NaN NaN\n", "4 4.0 11.0 14.0 NaN NaN NaN NaN NaN NaN\n", "5 NaN NaN NaN 32.0 26.0 24.0 NaN NaN NaN\n", "6 NaN NaN NaN 25.0 35.0 20.0 NaN NaN NaN\n", "7 NaN NaN NaN 29.0 36.0 25.0 NaN NaN NaN\n", "8 NaN NaN NaN 23.0 27.0 29.0 NaN NaN NaN\n", "9 NaN NaN NaN NaN NaN NaN 52.0 50.0 47.0\n", "10 NaN NaN NaN NaN NaN NaN 54.0 53.0 40.0\n", "11 NaN NaN NaN NaN NaN NaN 57.0 53.0 51.0\n", "12 NaN NaN NaN NaN NaN NaN 43.0 58.0 47.0" ] }, "execution_count": 58, "metadata": {}, "output_type": "execute_result" } ], "source": [ "pd.concat(farme, axis = 1)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Merging" ] }, { "cell_type": "code", "execution_count": 59, "metadata": {}, "outputs": [], "source": [ "left = {\n", " 'key':['k0','k1','k2','k3'],\n", " 'A':[10,20,30,40],\n", " 'B':[1,2,3,4]\n", "}" ] }, { "cell_type": "code", "execution_count": 60, "metadata": {}, "outputs": [], "source": [ "right = {\n", " 'key':['k0','k1','k2','k3'],\n", " 'C':[100,200,300,400],\n", " 'D':[11,12,13,14]\n", "}" ] }, { "cell_type": "code", "execution_count": 61, "metadata": {}, "outputs": [], "source": [ "left = pd.DataFrame(left)" ] }, { "cell_type": "code", "execution_count": 62, "metadata": {}, "outputs": [], "source": [ "right = pd.DataFrame(right)" ] }, { "cell_type": "code", "execution_count": 63, "metadata": {}, "outputs": [ { "data": { "text/html": [ "<div>\n", "<style scoped>\n", " .dataframe tbody tr th:only-of-type {\n", " vertical-align: middle;\n", " }\n", "\n", " .dataframe tbody tr th {\n", " vertical-align: top;\n", " }\n", "\n", " .dataframe thead th {\n", " text-align: right;\n", " }\n", "</style>\n", "<table border=\"1\" class=\"dataframe\">\n", " <thead>\n", " <tr style=\"text-align: right;\">\n", " <th></th>\n", " <th>key</th>\n", " <th>A</th>\n", " <th>B</th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <td>0</td>\n", " <td>k0</td>\n", " <td>10</td>\n", " <td>1</td>\n", " </tr>\n", " <tr>\n", " <td>1</td>\n", " <td>k1</td>\n", " <td>20</td>\n", " <td>2</td>\n", " </tr>\n", " <tr>\n", " <td>2</td>\n", " <td>k2</td>\n", " <td>30</td>\n", " <td>3</td>\n", " </tr>\n", " <tr>\n", " <td>3</td>\n", " <td>k3</td>\n", " <td>40</td>\n", " <td>4</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "</div>" ], "text/plain": [ " key A B\n", "0 k0 10 1\n", "1 k1 20 2\n", "2 k2 30 3\n", "3 k3 40 4" ] }, "execution_count": 63, "metadata": {}, "output_type": "execute_result" } ], "source": [ "left" ] }, { "cell_type": "code", "execution_count": 64, "metadata": {}, "outputs": [ { "data": { "text/html": [ "<div>\n", "<style scoped>\n", " .dataframe tbody tr th:only-of-type {\n", " vertical-align: middle;\n", " }\n", "\n", " .dataframe tbody tr th {\n", " vertical-align: top;\n", " }\n", "\n", " .dataframe thead th {\n", " text-align: right;\n", " }\n", "</style>\n", "<table border=\"1\" class=\"dataframe\">\n", " <thead>\n", " <tr style=\"text-align: right;\">\n", " <th></th>\n", " <th>key</th>\n", " <th>C</th>\n", " <th>D</th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <td>0</td>\n", " <td>k0</td>\n", " <td>100</td>\n", " <td>11</td>\n", " </tr>\n", " <tr>\n", " <td>1</td>\n", " <td>k1</td>\n", " <td>200</td>\n", " <td>12</td>\n", " </tr>\n", " <tr>\n", " <td>2</td>\n", " <td>k2</td>\n", " <td>300</td>\n", " <td>13</td>\n", " </tr>\n", " <tr>\n", " <td>3</td>\n", " <td>k3</td>\n", " <td>400</td>\n", " <td>14</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "</div>" ], "text/plain": [ " key C D\n", "0 k0 100 11\n", "1 k1 200 12\n", "2 k2 300 13\n", "3 k3 400 14" ] }, "execution_count": 64, "metadata": {}, "output_type": "execute_result" } ], "source": [ "right" ] }, { "cell_type": "code", "execution_count": 65, "metadata": {}, "outputs": [ { "data": { "text/html": [ "<div>\n", "<style scoped>\n", " .dataframe tbody tr th:only-of-type {\n", " vertical-align: middle;\n", " }\n", "\n", " .dataframe tbody tr th {\n", " vertical-align: top;\n", " }\n", "\n", " .dataframe thead th {\n", " text-align: right;\n", " }\n", "</style>\n", "<table border=\"1\" class=\"dataframe\">\n", " <thead>\n", " <tr style=\"text-align: right;\">\n", " <th></th>\n", " <th>key</th>\n", " <th>A</th>\n", " <th>B</th>\n", " <th>C</th>\n", " <th>D</th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <td>0</td>\n", " <td>k0</td>\n", " <td>10</td>\n", " <td>1</td>\n", " <td>100</td>\n", " <td>11</td>\n", " </tr>\n", " <tr>\n", " <td>1</td>\n", " <td>k1</td>\n", " <td>20</td>\n", " <td>2</td>\n", " <td>200</td>\n", " <td>12</td>\n", " </tr>\n", " <tr>\n", " <td>2</td>\n", " <td>k2</td>\n", " <td>30</td>\n", " <td>3</td>\n", " <td>300</td>\n", " <td>13</td>\n", " </tr>\n", " <tr>\n", " <td>3</td>\n", " <td>k3</td>\n", " <td>40</td>\n", " <td>4</td>\n", " <td>400</td>\n", " <td>14</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "</div>" ], "text/plain": [ " key A B C D\n", "0 k0 10 1 100 11\n", "1 k1 20 2 200 12\n", "2 k2 30 3 300 13\n", "3 k3 40 4 400 14" ] }, "execution_count": 65, "metadata": {}, "output_type": "execute_result" } ], "source": [ "pd.merge(left, right, on='key')" ] }, { "cell_type": "code", "execution_count": 66, "metadata": {}, "outputs": [], "source": [ "pd.merge??" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Joining" ] }, { "cell_type": "code", "execution_count": 67, "metadata": {}, "outputs": [], "source": [ "left = {\n", " 'A':['A0','A1','A2'],\n", " 'B':['B0','B1','B2']\n", "}" ] }, { "cell_type": "code", "execution_count": 68, "metadata": {}, "outputs": [], "source": [ "right = {\n", " 'C':['C0','C2','C3'],\n", " 'D':['D0','D2','D3']\n", "}" ] }, { "cell_type": "code", "execution_count": 69, "metadata": {}, "outputs": [], "source": [ "left = pd.DataFrame(left, index = ['k0','k1','k2'])" ] }, { "cell_type": "code", "execution_count": 70, "metadata": {}, "outputs": [], "source": [ "right = pd.DataFrame(right, index = ['k0','k2','k3'])" ] }, { "cell_type": "code", "execution_count": 71, "metadata": {}, "outputs": [ { "data": { "text/html": [ "<div>\n", "<style scoped>\n", " .dataframe tbody tr th:only-of-type {\n", " vertical-align: middle;\n", " }\n", "\n", " .dataframe tbody tr th {\n", " vertical-align: top;\n", " }\n", "\n", " .dataframe thead th {\n", " text-align: right;\n", " }\n", "</style>\n", "<table border=\"1\" class=\"dataframe\">\n", " <thead>\n", " <tr style=\"text-align: right;\">\n", " <th></th>\n", " <th>A</th>\n", " <th>B</th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <td>k0</td>\n", " <td>A0</td>\n", " <td>B0</td>\n", " </tr>\n", " <tr>\n", " <td>k1</td>\n", " <td>A1</td>\n", " <td>B1</td>\n", " </tr>\n", " <tr>\n", " <td>k2</td>\n", " <td>A2</td>\n", " <td>B2</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "</div>" ], "text/plain": [ " A B\n", "k0 A0 B0\n", "k1 A1 B1\n", "k2 A2 B2" ] }, "execution_count": 71, "metadata": {}, "output_type": "execute_result" } ], "source": [ "left" ] }, { "cell_type": "code", "execution_count": 72, "metadata": {}, "outputs": [ { "data": { "text/html": [ "<div>\n", "<style scoped>\n", " .dataframe tbody tr th:only-of-type {\n", " vertical-align: middle;\n", " }\n", "\n", " .dataframe tbody tr th {\n", " vertical-align: top;\n", " }\n", "\n", " .dataframe thead th {\n", " text-align: right;\n", " }\n", "</style>\n", "<table border=\"1\" class=\"dataframe\">\n", " <thead>\n", " <tr style=\"text-align: right;\">\n", " <th></th>\n", " <th>C</th>\n", " <th>D</th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <td>k0</td>\n", " <td>C0</td>\n", " <td>D0</td>\n", " </tr>\n", " <tr>\n", " <td>k2</td>\n", " <td>C2</td>\n", " <td>D2</td>\n", " </tr>\n", " <tr>\n", " <td>k3</td>\n", " <td>C3</td>\n", " <td>D3</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "</div>" ], "text/plain": [ " C D\n", "k0 C0 D0\n", "k2 C2 D2\n", "k3 C3 D3" ] }, "execution_count": 72, "metadata": {}, "output_type": "execute_result" } ], "source": [ "right" ] }, { "cell_type": "code", "execution_count": 76, "metadata": {}, "outputs": [ { "data": { "text/html": [ "<div>\n", "<style scoped>\n", " .dataframe tbody tr th:only-of-type {\n", " vertical-align: middle;\n", " }\n", "\n", " .dataframe tbody tr th {\n", " vertical-align: top;\n", " }\n", "\n", " .dataframe thead th {\n", " text-align: right;\n", " }\n", "</style>\n", "<table border=\"1\" class=\"dataframe\">\n", " <thead>\n", " <tr style=\"text-align: right;\">\n", " <th></th>\n", " <th>A</th>\n", " <th>B</th>\n", " <th>C</th>\n", " <th>D</th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <td>k0</td>\n", " <td>A0</td>\n", " <td>B0</td>\n", " <td>C0</td>\n", " <td>D0</td>\n", " </tr>\n", " <tr>\n", " <td>k2</td>\n", " <td>A2</td>\n", " <td>B2</td>\n", " <td>C2</td>\n", " <td>D2</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "</div>" ], "text/plain": [ " A B C D\n", "k0 A0 B0 C0 D0\n", "k2 A2 B2 C2 D2" ] }, "execution_count": 76, "metadata": {}, "output_type": "execute_result" } ], "source": [ "left.join(right, how = 'inner')" ] }, { "cell_type": "code", "execution_count": 74, "metadata": {}, "outputs": [], "source": [ "left.join??" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Operations" ] }, { "cell_type": "code", "execution_count": 77, "metadata": {}, "outputs": [], "source": [ "df = pd.DataFrame({\n", " 'col1':[444,555,666,444],\n", " 'col2':[1,2,3,4],\n", " 'col3':['abc','def','ghi','xyz']\n", "})" ] }, { "cell_type": "code", "execution_count": 78, "metadata": {}, "outputs": [ { "data": { "text/html": [ "<div>\n", "<style scoped>\n", " .dataframe tbody tr th:only-of-type {\n", " vertical-align: middle;\n", " }\n", "\n", " .dataframe tbody tr th {\n", " vertical-align: top;\n", " }\n", "\n", " .dataframe thead th {\n", " text-align: right;\n", " }\n", "</style>\n", "<table border=\"1\" class=\"dataframe\">\n", " <thead>\n", " <tr style=\"text-align: right;\">\n", " <th></th>\n", " <th>col1</th>\n", " <th>col2</th>\n", " <th>col3</th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <td>0</td>\n", " <td>444</td>\n", " <td>1</td>\n", " <td>abc</td>\n", " </tr>\n", " <tr>\n", " <td>1</td>\n", " <td>555</td>\n", " <td>2</td>\n", " <td>def</td>\n", " </tr>\n", " <tr>\n", " <td>2</td>\n", " <td>666</td>\n", " <td>3</td>\n", " <td>ghi</td>\n", " </tr>\n", " <tr>\n", " <td>3</td>\n", " <td>444</td>\n", " <td>4</td>\n", " <td>xyz</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "</div>" ], "text/plain": [ " col1 col2 col3\n", "0 444 1 abc\n", "1 555 2 def\n", "2 666 3 ghi\n", "3 444 4 xyz" ] }, "execution_count": 78, "metadata": {}, "output_type": "execute_result" } ], "source": [ "df" ] }, { "cell_type": "code", "execution_count": 79, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "array([444, 555, 666], dtype=int64)" ] }, "execution_count": 79, "metadata": {}, "output_type": "execute_result" } ], "source": [ "df['col1'].unique()" ] }, { "cell_type": "code", "execution_count": 80, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "3" ] }, "execution_count": 80, "metadata": {}, "output_type": "execute_result" } ], "source": [ "df['col1'].nunique()" ] }, { "cell_type": "code", "execution_count": 82, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "444 2\n", "555 1\n", "666 1\n", "Name: col1, dtype: int64" ] }, "execution_count": 82, "metadata": {}, "output_type": "execute_result" } ], "source": [ "df['col1'].value_counts()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Apply Method" ] }, { "cell_type": "code", "execution_count": 84, "metadata": {}, "outputs": [], "source": [ "def times2(x):\n", " return 2*x" ] }, { "cell_type": "code", "execution_count": 85, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "0 2\n", "1 4\n", "2 6\n", "3 8\n", "Name: col2, dtype: int64" ] }, "execution_count": 85, "metadata": {}, "output_type": "execute_result" } ], "source": [ "df['col2'].apply(times2)" ] }, { "cell_type": "code", "execution_count": 87, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "0 1\n", "1 4\n", "2 9\n", "3 16\n", "Name: col2, dtype: int64" ] }, "execution_count": 87, "metadata": {}, "output_type": "execute_result" } ], "source": [ "df['col2'].apply(lambda x: x**2)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Reading File" ] }, { "cell_type": "code", "execution_count": 88, "metadata": {}, "outputs": [], "source": [ "df = pd.read_excel('SampleData.xlsx', sheet_name = 'SalesOrders')" ] }, { "cell_type": "code", "execution_count": 89, "metadata": {}, "outputs": [ { "data": { "text/html": [ "<div>\n", "<style scoped>\n", " .dataframe tbody tr th:only-of-type {\n", " vertical-align: middle;\n", " }\n", "\n", " .dataframe tbody tr th {\n", " vertical-align: top;\n", " }\n", "\n", " .dataframe thead th {\n", " text-align: right;\n", " }\n", "</style>\n", "<table border=\"1\" class=\"dataframe\">\n", " <thead>\n", " <tr style=\"text-align: right;\">\n", " <th></th>\n", " <th>OrderDate</th>\n", " <th>Region</th>\n", " <th>Rep</th>\n", " <th>Item</th>\n", " <th>Units</th>\n", " <th>Unit Cost</th>\n", " <th>Total</th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <td>0</td>\n", " <td>2019-01-06</td>\n", " <td>East</td>\n", " <td>Jones</td>\n", " <td>Pencil</td>\n", " <td>95</td>\n", " <td>1.99</td>\n", " <td>189.05</td>\n", " </tr>\n", " <tr>\n", " <td>1</td>\n", " <td>2019-01-23</td>\n", " <td>Central</td>\n", " <td>Kivell</td>\n", " <td>Binder</td>\n", " <td>50</td>\n", " <td>19.99</td>\n", " <td>999.50</td>\n", " </tr>\n", " <tr>\n", " <td>2</td>\n", " <td>2019-02-09</td>\n", " <td>Central</td>\n", " <td>Jardine</td>\n", " <td>Pencil</td>\n", " <td>36</td>\n", " <td>4.99</td>\n", " <td>179.64</td>\n", " </tr>\n", " <tr>\n", " <td>3</td>\n", " <td>2019-02-26</td>\n", " <td>Central</td>\n", " <td>Gill</td>\n", " <td>Pen</td>\n", " <td>27</td>\n", " <td>19.99</td>\n", " <td>539.73</td>\n", " </tr>\n", " <tr>\n", " <td>4</td>\n", " <td>2019-03-15</td>\n", " <td>West</td>\n", " <td>Sorvino</td>\n", " <td>Pencil</td>\n", " <td>56</td>\n", " <td>2.99</td>\n", " <td>167.44</td>\n", " </tr>\n", " <tr>\n", " <td>5</td>\n", " <td>2019-04-01</td>\n", " <td>East</td>\n", " <td>Jones</td>\n", " <td>Binder</td>\n", " <td>60</td>\n", " <td>4.99</td>\n", " <td>299.40</td>\n", " </tr>\n", " <tr>\n", " <td>6</td>\n", " <td>2019-04-18</td>\n", " <td>Central</td>\n", " <td>Andrews</td>\n", " <td>Pencil</td>\n", " <td>75</td>\n", " <td>1.99</td>\n", " <td>149.25</td>\n", " </tr>\n", " <tr>\n", " <td>7</td>\n", " <td>2019-05-05</td>\n", " <td>Central</td>\n", " <td>Jardine</td>\n", " <td>Pencil</td>\n", " <td>90</td>\n", " <td>4.99</td>\n", " <td>449.10</td>\n", " </tr>\n", " <tr>\n", " <td>8</td>\n", " <td>2019-05-22</td>\n", " <td>West</td>\n", " <td>Thompson</td>\n", " <td>Pencil</td>\n", " <td>32</td>\n", " <td>1.99</td>\n", " <td>63.68</td>\n", " </tr>\n", " <tr>\n", " <td>9</td>\n", " <td>2019-06-08</td>\n", " <td>East</td>\n", " <td>Jones</td>\n", " <td>Binder</td>\n", " <td>60</td>\n", " <td>8.99</td>\n", " <td>539.40</td>\n", " </tr>\n", " <tr>\n", " <td>10</td>\n", " <td>2019-06-25</td>\n", " <td>Central</td>\n", " <td>Morgan</td>\n", " <td>Pencil</td>\n", " <td>90</td>\n", " <td>4.99</td>\n", " <td>449.10</td>\n", " </tr>\n", " <tr>\n", " <td>11</td>\n", " <td>2019-07-12</td>\n", " <td>East</td>\n", " <td>Howard</td>\n", " <td>Binder</td>\n", " <td>29</td>\n", " <td>1.99</td>\n", " <td>57.71</td>\n", " </tr>\n", " <tr>\n", " <td>12</td>\n", " <td>2019-07-29</td>\n", " <td>East</td>\n", " <td>Parent</td>\n", " <td>Binder</td>\n", " <td>81</td>\n", " <td>19.99</td>\n", " <td>1619.19</td>\n", " </tr>\n", " <tr>\n", " <td>13</td>\n", " <td>2019-08-15</td>\n", " <td>East</td>\n", " <td>Jones</td>\n", " <td>Pencil</td>\n", " <td>35</td>\n", " <td>4.99</td>\n", " <td>174.65</td>\n", " </tr>\n", " <tr>\n", " <td>14</td>\n", " <td>2019-09-01</td>\n", " <td>Central</td>\n", " <td>Smith</td>\n", " <td>Desk</td>\n", " <td>2</td>\n", " <td>125.00</td>\n", " <td>250.00</td>\n", " </tr>\n", " <tr>\n", " <td>15</td>\n", " <td>2019-09-18</td>\n", " <td>East</td>\n", " <td>Jones</td>\n", " <td>Pen Set</td>\n", " <td>16</td>\n", " <td>15.99</td>\n", " <td>255.84</td>\n", " </tr>\n", " <tr>\n", " <td>16</td>\n", " <td>2019-10-05</td>\n", " <td>Central</td>\n", " <td>Morgan</td>\n", " <td>Binder</td>\n", " <td>28</td>\n", " <td>8.99</td>\n", " <td>251.72</td>\n", " </tr>\n", " <tr>\n", " <td>17</td>\n", " <td>2019-10-22</td>\n", " <td>East</td>\n", " <td>Jones</td>\n", " <td>Pen</td>\n", " <td>64</td>\n", " <td>8.99</td>\n", " <td>575.36</td>\n", " </tr>\n", " <tr>\n", " <td>18</td>\n", " <td>2019-11-08</td>\n", " <td>East</td>\n", " <td>Parent</td>\n", " <td>Pen</td>\n", " <td>15</td>\n", " <td>19.99</td>\n", " <td>299.85</td>\n", " </tr>\n", " <tr>\n", " <td>19</td>\n", " <td>2019-11-25</td>\n", " <td>Central</td>\n", " <td>Kivell</td>\n", " <td>Pen Set</td>\n", " <td>96</td>\n", " <td>4.99</td>\n", " <td>479.04</td>\n", " </tr>\n", " <tr>\n", " <td>20</td>\n", " <td>2019-12-12</td>\n", " <td>Central</td>\n", " <td>Smith</td>\n", " <td>Pencil</td>\n", " <td>67</td>\n", " <td>1.29</td>\n", " <td>86.43</td>\n", " </tr>\n", " <tr>\n", " <td>21</td>\n", " <td>2019-12-29</td>\n", " <td>East</td>\n", " <td>Parent</td>\n", " <td>Pen Set</td>\n", " <td>74</td>\n", " <td>15.99</td>\n", " <td>1183.26</td>\n", " </tr>\n", " <tr>\n", " <td>22</td>\n", " <td>2020-01-15</td>\n", " <td>Central</td>\n", " <td>Gill</td>\n", " <td>Binder</td>\n", " <td>46</td>\n", " <td>8.99</td>\n", " <td>413.54</td>\n", " </tr>\n", " <tr>\n", " <td>23</td>\n", " <td>2020-02-01</td>\n", " <td>Central</td>\n", " <td>Smith</td>\n", " <td>Binder</td>\n", " <td>87</td>\n", " <td>15.00</td>\n", " <td>1305.00</td>\n", " </tr>\n", " <tr>\n", " <td>24</td>\n", " <td>2020-02-18</td>\n", " <td>East</td>\n", " <td>Jones</td>\n", " <td>Binder</td>\n", " <td>4</td>\n", " <td>4.99</td>\n", " <td>19.96</td>\n", " </tr>\n", " <tr>\n", " <td>25</td>\n", " <td>2020-03-07</td>\n", " <td>West</td>\n", " <td>Sorvino</td>\n", " <td>Binder</td>\n", " <td>7</td>\n", " <td>19.99</td>\n", " <td>139.93</td>\n", " </tr>\n", " <tr>\n", " <td>26</td>\n", " <td>2020-03-24</td>\n", " <td>Central</td>\n", " <td>Jardine</td>\n", " <td>Pen Set</td>\n", " <td>50</td>\n", " <td>4.99</td>\n", " <td>249.50</td>\n", " </tr>\n", " <tr>\n", " <td>27</td>\n", " <td>2020-04-10</td>\n", " <td>Central</td>\n", " <td>Andrews</td>\n", " <td>Pencil</td>\n", " <td>66</td>\n", " <td>1.99</td>\n", " <td>131.34</td>\n", " </tr>\n", " <tr>\n", " <td>28</td>\n", " <td>2020-04-27</td>\n", " <td>East</td>\n", " <td>Howard</td>\n", " <td>Pen</td>\n", " <td>96</td>\n", " <td>4.99</td>\n", " <td>479.04</td>\n", " </tr>\n", " <tr>\n", " <td>29</td>\n", " <td>2020-05-14</td>\n", " <td>Central</td>\n", " <td>Gill</td>\n", " <td>Pencil</td>\n", " <td>53</td>\n", " <td>1.29</td>\n", " <td>68.37</td>\n", " </tr>\n", " <tr>\n", " <td>30</td>\n", " <td>2020-05-31</td>\n", " <td>Central</td>\n", " <td>Gill</td>\n", " <td>Binder</td>\n", " <td>80</td>\n", " <td>8.99</td>\n", " <td>719.20</td>\n", " </tr>\n", " <tr>\n", " <td>31</td>\n", " <td>2020-06-17</td>\n", " <td>Central</td>\n", " <td>Kivell</td>\n", " <td>Desk</td>\n", " <td>5</td>\n", " <td>125.00</td>\n", " <td>625.00</td>\n", " </tr>\n", " <tr>\n", " <td>32</td>\n", " <td>2020-07-04</td>\n", " <td>East</td>\n", " <td>Jones</td>\n", " <td>Pen Set</td>\n", " <td>62</td>\n", " <td>4.99</td>\n", " <td>309.38</td>\n", " </tr>\n", " <tr>\n", " <td>33</td>\n", " <td>2020-07-21</td>\n", " <td>Central</td>\n", " <td>Morgan</td>\n", " <td>Pen Set</td>\n", " <td>55</td>\n", " <td>12.49</td>\n", " <td>686.95</td>\n", " </tr>\n", " <tr>\n", " <td>34</td>\n", " <td>2020-08-07</td>\n", " <td>Central</td>\n", " <td>Kivell</td>\n", " <td>Pen Set</td>\n", " <td>42</td>\n", " <td>23.95</td>\n", " <td>1005.90</td>\n", " </tr>\n", " <tr>\n", " <td>35</td>\n", " <td>2020-08-24</td>\n", " <td>West</td>\n", " <td>Sorvino</td>\n", " <td>Desk</td>\n", " <td>3</td>\n", " <td>275.00</td>\n", " <td>825.00</td>\n", " </tr>\n", " <tr>\n", " <td>36</td>\n", " <td>2020-09-10</td>\n", " <td>Central</td>\n", " <td>Gill</td>\n", " <td>Pencil</td>\n", " <td>7</td>\n", " <td>1.29</td>\n", " <td>9.03</td>\n", " </tr>\n", " <tr>\n", " <td>37</td>\n", " <td>2020-09-27</td>\n", " <td>West</td>\n", " <td>Sorvino</td>\n", " <td>Pen</td>\n", " <td>76</td>\n", " <td>1.99</td>\n", " <td>151.24</td>\n", " </tr>\n", " <tr>\n", " <td>38</td>\n", " <td>2020-10-14</td>\n", " <td>West</td>\n", " <td>Thompson</td>\n", " <td>Binder</td>\n", " <td>57</td>\n", " <td>19.99</td>\n", " <td>1139.43</td>\n", " </tr>\n", " <tr>\n", " <td>39</td>\n", " <td>2020-10-31</td>\n", " <td>Central</td>\n", " <td>Andrews</td>\n", " <td>Pencil</td>\n", " <td>14</td>\n", " <td>1.29</td>\n", " <td>18.06</td>\n", " </tr>\n", " <tr>\n", " <td>40</td>\n", " <td>2020-11-17</td>\n", " <td>Central</td>\n", " <td>Jardine</td>\n", " <td>Binder</td>\n", " <td>11</td>\n", " <td>4.99</td>\n", " <td>54.89</td>\n", " </tr>\n", " <tr>\n", " <td>41</td>\n", " <td>2020-12-04</td>\n", " <td>Central</td>\n", " <td>Jardine</td>\n", " <td>Binder</td>\n", " <td>94</td>\n", " <td>19.99</td>\n", " <td>1879.06</td>\n", " </tr>\n", " <tr>\n", " <td>42</td>\n", " <td>2020-12-21</td>\n", " <td>Central</td>\n", " <td>Andrews</td>\n", " <td>Binder</td>\n", " <td>28</td>\n", " <td>4.99</td>\n", " <td>139.72</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "</div>" ], "text/plain": [ " OrderDate Region Rep Item Units Unit Cost Total\n", "0 2019-01-06 East Jones Pencil 95 1.99 189.05\n", "1 2019-01-23 Central Kivell Binder 50 19.99 999.50\n", "2 2019-02-09 Central Jardine Pencil 36 4.99 179.64\n", "3 2019-02-26 Central Gill Pen 27 19.99 539.73\n", "4 2019-03-15 West Sorvino Pencil 56 2.99 167.44\n", "5 2019-04-01 East Jones Binder 60 4.99 299.40\n", "6 2019-04-18 Central Andrews Pencil 75 1.99 149.25\n", "7 2019-05-05 Central Jardine Pencil 90 4.99 449.10\n", "8 2019-05-22 West Thompson Pencil 32 1.99 63.68\n", "9 2019-06-08 East Jones Binder 60 8.99 539.40\n", "10 2019-06-25 Central Morgan Pencil 90 4.99 449.10\n", "11 2019-07-12 East Howard Binder 29 1.99 57.71\n", "12 2019-07-29 East Parent Binder 81 19.99 1619.19\n", "13 2019-08-15 East Jones Pencil 35 4.99 174.65\n", "14 2019-09-01 Central Smith Desk 2 125.00 250.00\n", "15 2019-09-18 East Jones Pen Set 16 15.99 255.84\n", "16 2019-10-05 Central Morgan Binder 28 8.99 251.72\n", "17 2019-10-22 East Jones Pen 64 8.99 575.36\n", "18 2019-11-08 East Parent Pen 15 19.99 299.85\n", "19 2019-11-25 Central Kivell Pen Set 96 4.99 479.04\n", "20 2019-12-12 Central Smith Pencil 67 1.29 86.43\n", "21 2019-12-29 East Parent Pen Set 74 15.99 1183.26\n", "22 2020-01-15 Central Gill Binder 46 8.99 413.54\n", "23 2020-02-01 Central Smith Binder 87 15.00 1305.00\n", "24 2020-02-18 East Jones Binder 4 4.99 19.96\n", "25 2020-03-07 West Sorvino Binder 7 19.99 139.93\n", "26 2020-03-24 Central Jardine Pen Set 50 4.99 249.50\n", "27 2020-04-10 Central Andrews Pencil 66 1.99 131.34\n", "28 2020-04-27 East Howard Pen 96 4.99 479.04\n", "29 2020-05-14 Central Gill Pencil 53 1.29 68.37\n", "30 2020-05-31 Central Gill Binder 80 8.99 719.20\n", "31 2020-06-17 Central Kivell Desk 5 125.00 625.00\n", "32 2020-07-04 East Jones Pen Set 62 4.99 309.38\n", "33 2020-07-21 Central Morgan Pen Set 55 12.49 686.95\n", "34 2020-08-07 Central Kivell Pen Set 42 23.95 1005.90\n", "35 2020-08-24 West Sorvino Desk 3 275.00 825.00\n", "36 2020-09-10 Central Gill Pencil 7 1.29 9.03\n", "37 2020-09-27 West Sorvino Pen 76 1.99 151.24\n", "38 2020-10-14 West Thompson Binder 57 19.99 1139.43\n", "39 2020-10-31 Central Andrews Pencil 14 1.29 18.06\n", "40 2020-11-17 Central Jardine Binder 11 4.99 54.89\n", "41 2020-12-04 Central Jardine Binder 94 19.99 1879.06\n", "42 2020-12-21 Central Andrews Binder 28 4.99 139.72" ] }, "execution_count": 89, "metadata": {}, "output_type": "execute_result" } ], "source": [ "df" ] }, { "cell_type": "code", "execution_count": 91, "metadata": {}, "outputs": [ { "data": { "text/html": [ "<div>\n", "<style scoped>\n", " .dataframe tbody tr th:only-of-type {\n", " vertical-align: middle;\n", " }\n", "\n", " .dataframe tbody tr th {\n", " vertical-align: top;\n", " }\n", "\n", " .dataframe thead th {\n", " text-align: right;\n", " }\n", "</style>\n", "<table border=\"1\" class=\"dataframe\">\n", " <thead>\n", " <tr style=\"text-align: right;\">\n", " <th></th>\n", " <th>OrderDate</th>\n", " <th>Region</th>\n", " <th>Rep</th>\n", " <th>Item</th>\n", " <th>Units</th>\n", " <th>Unit Cost</th>\n", " <th>Total</th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <td>0</td>\n", " <td>2019-01-06</td>\n", " <td>East</td>\n", " <td>Jones</td>\n", " <td>Pencil</td>\n", " <td>95</td>\n", " <td>1.99</td>\n", " <td>189.05</td>\n", " </tr>\n", " <tr>\n", " <td>1</td>\n", " <td>2019-01-23</td>\n", " <td>Central</td>\n", " <td>Kivell</td>\n", " <td>Binder</td>\n", " <td>50</td>\n", " <td>19.99</td>\n", " <td>999.50</td>\n", " </tr>\n", " <tr>\n", " <td>2</td>\n", " <td>2019-02-09</td>\n", " <td>Central</td>\n", " <td>Jardine</td>\n", " <td>Pencil</td>\n", " <td>36</td>\n", " <td>4.99</td>\n", " <td>179.64</td>\n", " </tr>\n", " <tr>\n", " <td>3</td>\n", " <td>2019-02-26</td>\n", " <td>Central</td>\n", " <td>Gill</td>\n", " <td>Pen</td>\n", " <td>27</td>\n", " <td>19.99</td>\n", " <td>539.73</td>\n", " </tr>\n", " <tr>\n", " <td>4</td>\n", " <td>2019-03-15</td>\n", " <td>West</td>\n", " <td>Sorvino</td>\n", " <td>Pencil</td>\n", " <td>56</td>\n", " <td>2.99</td>\n", " <td>167.44</td>\n", " </tr>\n", " <tr>\n", " <td>5</td>\n", " <td>2019-04-01</td>\n", " <td>East</td>\n", " <td>Jones</td>\n", " <td>Binder</td>\n", " <td>60</td>\n", " <td>4.99</td>\n", " <td>299.40</td>\n", " </tr>\n", " <tr>\n", " <td>6</td>\n", " <td>2019-04-18</td>\n", " <td>Central</td>\n", " <td>Andrews</td>\n", " <td>Pencil</td>\n", " <td>75</td>\n", " <td>1.99</td>\n", " <td>149.25</td>\n", " </tr>\n", " <tr>\n", " <td>7</td>\n", " <td>2019-05-05</td>\n", " <td>Central</td>\n", " <td>Jardine</td>\n", " <td>Pencil</td>\n", " <td>90</td>\n", " <td>4.99</td>\n", " <td>449.10</td>\n", " </tr>\n", " <tr>\n", " <td>8</td>\n", " <td>2019-05-22</td>\n", " <td>West</td>\n", " <td>Thompson</td>\n", " <td>Pencil</td>\n", " <td>32</td>\n", " <td>1.99</td>\n", " <td>63.68</td>\n", " </tr>\n", " <tr>\n", " <td>9</td>\n", " <td>2019-06-08</td>\n", " <td>East</td>\n", " <td>Jones</td>\n", " <td>Binder</td>\n", " <td>60</td>\n", " <td>8.99</td>\n", " <td>539.40</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "</div>" ], "text/plain": [ " OrderDate Region Rep Item Units Unit Cost Total\n", "0 2019-01-06 East Jones Pencil 95 1.99 189.05\n", "1 2019-01-23 Central Kivell Binder 50 19.99 999.50\n", "2 2019-02-09 Central Jardine Pencil 36 4.99 179.64\n", "3 2019-02-26 Central Gill Pen 27 19.99 539.73\n", "4 2019-03-15 West Sorvino Pencil 56 2.99 167.44\n", "5 2019-04-01 East Jones Binder 60 4.99 299.40\n", "6 2019-04-18 Central Andrews Pencil 75 1.99 149.25\n", "7 2019-05-05 Central Jardine Pencil 90 4.99 449.10\n", "8 2019-05-22 West Thompson Pencil 32 1.99 63.68\n", "9 2019-06-08 East Jones Binder 60 8.99 539.40" ] }, "execution_count": 91, "metadata": {}, "output_type": "execute_result" } ], "source": [ "df.head(10)" ] }, { "cell_type": "code", "execution_count": 92, "metadata": {}, "outputs": [ { "data": { "text/html": [ "<div>\n", "<style scoped>\n", " .dataframe tbody tr th:only-of-type {\n", " vertical-align: middle;\n", " }\n", "\n", " .dataframe tbody tr th {\n", " vertical-align: top;\n", " }\n", "\n", " .dataframe thead th {\n", " text-align: right;\n", " }\n", "</style>\n", "<table border=\"1\" class=\"dataframe\">\n", " <thead>\n", " <tr style=\"text-align: right;\">\n", " <th></th>\n", " <th>OrderDate</th>\n", " <th>Region</th>\n", " <th>Rep</th>\n", " <th>Item</th>\n", " <th>Units</th>\n", " <th>Unit Cost</th>\n", " <th>Total</th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <td>38</td>\n", " <td>2020-10-14</td>\n", " <td>West</td>\n", " <td>Thompson</td>\n", " <td>Binder</td>\n", " <td>57</td>\n", " <td>19.99</td>\n", " <td>1139.43</td>\n", " </tr>\n", " <tr>\n", " <td>39</td>\n", " <td>2020-10-31</td>\n", " <td>Central</td>\n", " <td>Andrews</td>\n", " <td>Pencil</td>\n", " <td>14</td>\n", " <td>1.29</td>\n", " <td>18.06</td>\n", " </tr>\n", " <tr>\n", " <td>40</td>\n", " <td>2020-11-17</td>\n", " <td>Central</td>\n", " <td>Jardine</td>\n", " <td>Binder</td>\n", " <td>11</td>\n", " <td>4.99</td>\n", " <td>54.89</td>\n", " </tr>\n", " <tr>\n", " <td>41</td>\n", " <td>2020-12-04</td>\n", " <td>Central</td>\n", " <td>Jardine</td>\n", " <td>Binder</td>\n", " <td>94</td>\n", " <td>19.99</td>\n", " <td>1879.06</td>\n", " </tr>\n", " <tr>\n", " <td>42</td>\n", " <td>2020-12-21</td>\n", " <td>Central</td>\n", " <td>Andrews</td>\n", " <td>Binder</td>\n", " <td>28</td>\n", " <td>4.99</td>\n", " <td>139.72</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "</div>" ], "text/plain": [ " OrderDate Region Rep Item Units Unit Cost Total\n", "38 2020-10-14 West Thompson Binder 57 19.99 1139.43\n", "39 2020-10-31 Central Andrews Pencil 14 1.29 18.06\n", "40 2020-11-17 Central Jardine Binder 11 4.99 54.89\n", "41 2020-12-04 Central Jardine Binder 94 19.99 1879.06\n", "42 2020-12-21 Central Andrews Binder 28 4.99 139.72" ] }, "execution_count": 92, "metadata": {}, "output_type": "execute_result" } ], "source": [ "df.tail()" ] }, { "cell_type": "code", "execution_count": 93, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "Index(['OrderDate', 'Region', 'Rep', 'Item', 'Units', 'Unit Cost', 'Total'], dtype='object')" ] }, "execution_count": 93, "metadata": {}, "output_type": "execute_result" } ], "source": [ "df.columns" ] }, { "cell_type": "code", "execution_count": 94, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "['OrderDate', 'Region', 'Rep', 'Item', 'Units', 'Unit Cost', 'Total']" ] }, "execution_count": 94, "metadata": {}, "output_type": "execute_result" } ], "source": [ "df.columns.to_list()" ] }, { "cell_type": "code", "execution_count": 95, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "<class 'pandas.core.frame.DataFrame'>\n", "RangeIndex: 43 entries, 0 to 42\n", "Data columns (total 7 columns):\n", "OrderDate 43 non-null datetime64[ns]\n", "Region 43 non-null object\n", "Rep 43 non-null object\n", "Item 43 non-null object\n", "Units 43 non-null int64\n", "Unit Cost 43 non-null float64\n", "Total 43 non-null float64\n", "dtypes: datetime64[ns](1), float64(2), int64(1), object(3)\n", "memory usage: 2.5+ KB\n" ] } ], "source": [ "df.info()" ] }, { "cell_type": "code", "execution_count": 97, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "OrderDate 43\n", "Region 3\n", "Rep 11\n", "Item 5\n", "Units 37\n", "Unit Cost 12\n", "Total 41\n", "dtype: int64" ] }, "execution_count": 97, "metadata": {}, "output_type": "execute_result" } ], "source": [ "df.nunique()" ] }, { "cell_type": "code", "execution_count": 98, "metadata": {}, "outputs": [ { "data": { "text/html": [ "<div>\n", "<style scoped>\n", " .dataframe tbody tr th:only-of-type {\n", " vertical-align: middle;\n", " }\n", "\n", " .dataframe tbody tr th {\n", " vertical-align: top;\n", " }\n", "\n", " .dataframe thead th {\n", " text-align: right;\n", " }\n", "</style>\n", "<table border=\"1\" class=\"dataframe\">\n", " <thead>\n", " <tr style=\"text-align: right;\">\n", " <th></th>\n", " <th>OrderDate</th>\n", " <th>Region</th>\n", " <th>Rep</th>\n", " <th>Item</th>\n", " <th>Units</th>\n", " <th>Unit Cost</th>\n", " <th>Total</th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <td>0</td>\n", " <td>2019-01-06</td>\n", " <td>East</td>\n", " <td>Jones</td>\n", " <td>Pencil</td>\n", " <td>95</td>\n", " <td>1.99</td>\n", " <td>189.05</td>\n", " </tr>\n", " <tr>\n", " <td>1</td>\n", " <td>2019-01-23</td>\n", " <td>Central</td>\n", " <td>Kivell</td>\n", " <td>Binder</td>\n", " <td>50</td>\n", " <td>19.99</td>\n", " <td>999.50</td>\n", " </tr>\n", " <tr>\n", " <td>2</td>\n", " <td>2019-02-09</td>\n", " <td>Central</td>\n", " <td>Jardine</td>\n", " <td>Pencil</td>\n", " <td>36</td>\n", " <td>4.99</td>\n", " <td>179.64</td>\n", " </tr>\n", " <tr>\n", " <td>3</td>\n", " <td>2019-02-26</td>\n", " <td>Central</td>\n", " <td>Gill</td>\n", " <td>Pen</td>\n", " <td>27</td>\n", " <td>19.99</td>\n", " <td>539.73</td>\n", " </tr>\n", " <tr>\n", " <td>4</td>\n", " <td>2019-03-15</td>\n", " <td>West</td>\n", " <td>Sorvino</td>\n", " <td>Pencil</td>\n", " <td>56</td>\n", " <td>2.99</td>\n", " <td>167.44</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "</div>" ], "text/plain": [ " OrderDate Region Rep Item Units Unit Cost Total\n", "0 2019-01-06 East Jones Pencil 95 1.99 189.05\n", "1 2019-01-23 Central Kivell Binder 50 19.99 999.50\n", "2 2019-02-09 Central Jardine Pencil 36 4.99 179.64\n", "3 2019-02-26 Central Gill Pen 27 19.99 539.73\n", "4 2019-03-15 West Sorvino Pencil 56 2.99 167.44" ] }, "execution_count": 98, "metadata": {}, "output_type": "execute_result" } ], "source": [ "df.head()" ] }, { "cell_type": "code", "execution_count": 99, "metadata": {}, "outputs": [], "source": [ "df['20% Dis'] = df['Total'].apply(lambda x: x*(20/100))" ] }, { "cell_type": "code", "execution_count": 100, "metadata": {}, "outputs": [ { "data": { "text/html": [ "<div>\n", "<style scoped>\n", " .dataframe tbody tr th:only-of-type {\n", " vertical-align: middle;\n", " }\n", "\n", " .dataframe tbody tr th {\n", " vertical-align: top;\n", " }\n", "\n", " .dataframe thead th {\n", " text-align: right;\n", " }\n", "</style>\n", "<table border=\"1\" class=\"dataframe\">\n", " <thead>\n", " <tr style=\"text-align: right;\">\n", " <th></th>\n", " <th>OrderDate</th>\n", " <th>Region</th>\n", " <th>Rep</th>\n", " <th>Item</th>\n", " <th>Units</th>\n", " <th>Unit Cost</th>\n", " <th>Total</th>\n", " <th>20% Dis</th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <td>0</td>\n", " <td>2019-01-06</td>\n", " <td>East</td>\n", " <td>Jones</td>\n", " <td>Pencil</td>\n", " <td>95</td>\n", " <td>1.99</td>\n", " <td>189.05</td>\n", " <td>37.810</td>\n", " </tr>\n", " <tr>\n", " <td>1</td>\n", " <td>2019-01-23</td>\n", " <td>Central</td>\n", " <td>Kivell</td>\n", " <td>Binder</td>\n", " <td>50</td>\n", " <td>19.99</td>\n", " <td>999.50</td>\n", " <td>199.900</td>\n", " </tr>\n", " <tr>\n", " <td>2</td>\n", " <td>2019-02-09</td>\n", " <td>Central</td>\n", " <td>Jardine</td>\n", " <td>Pencil</td>\n", " <td>36</td>\n", " <td>4.99</td>\n", " <td>179.64</td>\n", " <td>35.928</td>\n", " </tr>\n", " <tr>\n", " <td>3</td>\n", " <td>2019-02-26</td>\n", " <td>Central</td>\n", " <td>Gill</td>\n", " <td>Pen</td>\n", " <td>27</td>\n", " <td>19.99</td>\n", " <td>539.73</td>\n", " <td>107.946</td>\n", " </tr>\n", " <tr>\n", " <td>4</td>\n", " <td>2019-03-15</td>\n", " <td>West</td>\n", " <td>Sorvino</td>\n", " <td>Pencil</td>\n", " <td>56</td>\n", " <td>2.99</td>\n", " <td>167.44</td>\n", " <td>33.488</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "</div>" ], "text/plain": [ " OrderDate Region Rep Item Units Unit Cost Total 20% Dis\n", "0 2019-01-06 East Jones Pencil 95 1.99 189.05 37.810\n", "1 2019-01-23 Central Kivell Binder 50 19.99 999.50 199.900\n", "2 2019-02-09 Central Jardine Pencil 36 4.99 179.64 35.928\n", "3 2019-02-26 Central Gill Pen 27 19.99 539.73 107.946\n", "4 2019-03-15 West Sorvino Pencil 56 2.99 167.44 33.488" ] }, "execution_count": 100, "metadata": {}, "output_type": "execute_result" } ], "source": [ "df.head()" ] }, { "cell_type": "code", "execution_count": 101, "metadata": {}, "outputs": [], "source": [ "df['Payment'] = df['Total'] - df['20% Dis']" ] }, { "cell_type": "code", "execution_count": 102, "metadata": {}, "outputs": [ { "data": { "text/html": [ "<div>\n", "<style scoped>\n", " .dataframe tbody tr th:only-of-type {\n", " vertical-align: middle;\n", " }\n", "\n", " .dataframe tbody tr th {\n", " vertical-align: top;\n", " }\n", "\n", " .dataframe thead th {\n", " text-align: right;\n", " }\n", "</style>\n", "<table border=\"1\" class=\"dataframe\">\n", " <thead>\n", " <tr style=\"text-align: right;\">\n", " <th></th>\n", " <th>OrderDate</th>\n", " <th>Region</th>\n", " <th>Rep</th>\n", " <th>Item</th>\n", " <th>Units</th>\n", " <th>Unit Cost</th>\n", " <th>Total</th>\n", " <th>20% Dis</th>\n", " <th>Payment</th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <td>0</td>\n", " <td>2019-01-06</td>\n", " <td>East</td>\n", " <td>Jones</td>\n", " <td>Pencil</td>\n", " <td>95</td>\n", " <td>1.99</td>\n", " <td>189.05</td>\n", " <td>37.810</td>\n", " <td>151.240</td>\n", " </tr>\n", " <tr>\n", " <td>1</td>\n", " <td>2019-01-23</td>\n", " <td>Central</td>\n", " <td>Kivell</td>\n", " <td>Binder</td>\n", " <td>50</td>\n", " <td>19.99</td>\n", " <td>999.50</td>\n", " <td>199.900</td>\n", " <td>799.600</td>\n", " </tr>\n", " <tr>\n", " <td>2</td>\n", " <td>2019-02-09</td>\n", " <td>Central</td>\n", " <td>Jardine</td>\n", " <td>Pencil</td>\n", " <td>36</td>\n", " <td>4.99</td>\n", " <td>179.64</td>\n", " <td>35.928</td>\n", " <td>143.712</td>\n", " </tr>\n", " <tr>\n", " <td>3</td>\n", " <td>2019-02-26</td>\n", " <td>Central</td>\n", " <td>Gill</td>\n", " <td>Pen</td>\n", " <td>27</td>\n", " <td>19.99</td>\n", " <td>539.73</td>\n", " <td>107.946</td>\n", " <td>431.784</td>\n", " </tr>\n", " <tr>\n", " <td>4</td>\n", " <td>2019-03-15</td>\n", " <td>West</td>\n", " <td>Sorvino</td>\n", " <td>Pencil</td>\n", " <td>56</td>\n", " <td>2.99</td>\n", " <td>167.44</td>\n", " <td>33.488</td>\n", " <td>133.952</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "</div>" ], "text/plain": [ " OrderDate Region Rep Item Units Unit Cost Total 20% Dis \\\n", "0 2019-01-06 East Jones Pencil 95 1.99 189.05 37.810 \n", "1 2019-01-23 Central Kivell Binder 50 19.99 999.50 199.900 \n", "2 2019-02-09 Central Jardine Pencil 36 4.99 179.64 35.928 \n", "3 2019-02-26 Central Gill Pen 27 19.99 539.73 107.946 \n", "4 2019-03-15 West Sorvino Pencil 56 2.99 167.44 33.488 \n", "\n", " Payment \n", "0 151.240 \n", "1 799.600 \n", "2 143.712 \n", "3 431.784 \n", "4 133.952 " ] }, "execution_count": 102, "metadata": {}, "output_type": "execute_result" } ], "source": [ "df.head()" ] }, { "cell_type": "code", "execution_count": 103, "metadata": {}, "outputs": [], "source": [ "import matplotlib.pyplot as plt" ] }, { "cell_type": "code", "execution_count": 105, "metadata": {}, "outputs": [ { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAswAAAFlCAYAAAD/Kr6hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4xLjEsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy8QZhcZAAAgAElEQVR4nOzdaZRb53kn+P+LfasCamcVKZKiREpeJMsStdiyLCpuO467p53MmelInsR2YltJx/kwyXyY5PTp4z49x3N6ZronHXc6TkuJ4qTjJVs78XScxY5FOY65iFosS7JIcRXJ2oEqrIV7cYF3Ptz7olA7gHsvgAv8f+fwkESBxUupCnjw4P8+j5BSgoiIiIiItufr9gUQEREREfUyFsxERERERLtgwUxEREREtAsWzEREREREu2DBTERERES0CxbMRERERES7CHT7AvYyPj4uDx8+3O3LICIiIqI+9sILLyxLKSe2+1jPF8yHDx/GuXPnun0ZRERERNTHhBDXdvoYIxlERERERLtgwUxEREREtAsWzEREREREu2DBTERERES0CxbMRERERES7YMFMRERERLQLFsxERERERLtgwUxEREREtAsWzEREREREu2DBTERERES0CxbMRERERES7YMFMRERERI4pV6p4K13q9mU4igUzERERETnmy2fewod/87uoVGvdvhTHsGAmIiIiIscs5Moo6VUUNaPbl+IYFsxERERE5BhVKOfLLJiJiIiIiLZQBXNRZ8FMRERERLRFQauaP7PDTERERES0leowF5hhJiIiIiLaSkUxilanuR+wYCYiIiIix6x3mCtdvhLnsGAmIiIiIseoznKBHWYiIiIioq3qHWYe+iMiIiIi2khKuZ5h5lg5IiIiIqKN1ipV1KT5ay4uISIiIiLapHGUH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YDv5npdlLh2cY+/FOcO/f0RZw/93Z3r9ZF63eL+LulnLJX1RRp1W84XMIuFfw+41vpBAAf4n+vAaXpeB3CC/6+Df3wluLMNF4BJ/ncLf99bAI7wi3lFkm1eB26qsxvAN+Nu/wL/fGFwZy+/zvX6KHm9Zj1G6V/Eilo3AG8AuCbX66LQdfs9gCFwg4MDAD7B355wm0r9yWDtfg1gIu6x+1J5L83a5sfBfTF1AfjnuNsf5Ncyyv/3O7leH6WvWdz99VB2wayoNQNX2DTlel0UvHZvARgF4OM/i1fztzcC2MOv6R8B6HO9PjKtW8LjfYJtila3saQ/BoPBYDAYDAYjCXmtYWYwGAwGg8FgMKSGFcwMBoPBYDAYDEYSWMHMYDAYDAaDwWAkgRXMDAaDwWAwGAxGEljBzGAwGAwGg8FgJIEVzAwGg8FgMBgMRhJYwcxgMBgMBoPBYCSBFcwMBoPBYDAYDEYS/j9oiRTf+v76+QAAAABJRU5ErkJggg==\n", "text/plain": [ "<Figure size 864x432 with 1 Axes>" ] }, "metadata": { "needs_background": "light" }, "output_type": "display_data" } ], "source": [ "plt.figure(figsize = (12,6))\n", "plt.plot(df['OrderDate'], df['Total'])\n", "plt.show()" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.4" } }, "nbformat": 4, "nbformat_minor": 2 }
{'cells': [{'cell_type': 'markdown', 'metadata': {}, 'source': ['# Part 2']}, {'cell_type': 'code', 'execution_count': 3, 'metadata': {}, 'outputs': [], 'source': ['import pandas as pd\n', 'import numpy as np']}, {'cell_type': 'markdown', 'metadata': {}, 'source': ['# missing data']}, {'cell_type': 'code', 'execution_count': 5, 'metadata': {}, 'outputs': [], 'source': ['d = {\n', " 'A': [1,2, np.nan],\n", " 'B':[5, np.nan, np.nan],\n", " 'C':[1,2,3]\n", '}']}, {'cell_type': 'code', 'execution_count': 6, 'metadata': {}, 'outputs': [], 'source': ['df = pd.DataFrame(d)']}, {'cell_type': 'code', 'execution_count': 7, 'metadata': {}, 'outputs': [{'data': {'text/html': ['<div>\n', '<style scoped>\n', ' .dataframe tbody tr th:only-of-type {\n', ' vertical-align: middle;\n', ' }\n', '\n', ' .dataframe tbody tr th {\n', ' vertical-align: top;\n', ' }\n', '\n', ' .dataframe thead th {\n', ' text-align: right;\n', ' }\n', '</style>\n', '<table border="1" class="dataframe">\n', ' <thead>\n', ' <tr style="text-align: right;">\n', ' <th></th>\n', ' <th>A</th>\n', ' <th>B</th>\n', ' <th>C</th>\n', ' </tr>\n', ' </thead>\n', ' <tbody>\n', ' <tr>\n', ' <td>0</td>\n', ' <td>1.0</td>\n', ' <td>5.0</td>\n', ' <td>1</td>\n', ' </tr>\n', ' <tr>\n', ' <td>1</td>\n', ' <td>2.0</td>\n', ' <td>NaN</td>\n', ' <td>2</td>\n', ' </tr>\n', ' <tr>\n', ' <td>2</td>\n', ' <td>NaN</td>\n', ' <td>NaN</td>\n', ' <td>3</td>\n', ' </tr>\n', ' </tbody>\n', '</table>\n', '</div>'], 'text/plain': [' A B C\n', '0 1.0 5.0 1\n', '1 2.0 NaN 2\n', '2 NaN NaN 3']}, 'execution_count': 7, 'metadata': {}, 'output_type': 'execute_result'}], 'source': ['df']}, {'cell_type': 'markdown', 'metadata': {}, 'source': ['## drop nan method']}, {'cell_type': 'code', 'execution_count': 10, 'metadata': {}, 'outputs': [{'data': {'text/html': ['<div>\n', '<style scoped>\n', ' .dataframe tbody tr th:only-of-type {\n', ' vertical-align: middle;\n', ' }\n', '\n', ' .dataframe tbody tr th {\n', ' vertical-align: top;\n', ' }\n', '\n', ' .dataframe thead th {\n', ' text-align: right;\n', ' }\n', '</style>\n', '<table border="1" class="dataframe">\n', ' <thead>\n', ' <tr style="text-align: right;">\n', ' <th></th>\n', ' <th>A</th>\n', ' <th>B</th>\n', ' <th>C</th>\n', ' </tr>\n', ' </thead>\n', ' <tbody>\n', ' <tr>\n', ' <td>0</td>\n', ' <td>1.0</td>\n', ' <td>5.0</td>\n', ' <td>1</td>\n', ' </tr>\n', ' </tbody>\n', '</table>\n', '</div>'], 'text/plain': [' A B C\n', '0 1.0 5.0 1']}, 'execution_count': 10, 'metadata': {}, 'output_type': 'execute_result'}], 'source': ['df.dropna()']}, {'cell_type': 'code', 'execution_count': 11, 'metadata': {}, 'outputs': [{'data': {'text/html': ['<div>\n', '<style scoped>\n', ' .dataframe tbody tr th:only-of-type {\n', ' vertical-align: middle;\n', ' }\n', '\n', ' .dataframe tbody tr th {\n', ' vertical-align: top;\n', ' }\n', '\n', ' .dataframe thead th {\n', ' text-align: right;\n', ' }\n', '</style>\n', '<table border="1" class="dataframe">\n', ' <thead>\n', ' <tr style="text-align: right;">\n', ' <th></th>\n', ' <th>A</th>\n', ' <th>B</th>\n', ' <th>C</th>\n', ' </tr>\n', ' </thead>\n', ' <tbody>\n', ' <tr>\n', ' <td>0</td>\n', ' <td>1.0</td>\n', ' <td>5.0</td>\n', ' <td>1</td>\n', ' </tr>\n', ' </tbody>\n', '</table>\n', '</div>'], 'text/plain': [' A B C\n', '0 1.0 5.0 1']}, 'execution_count': 11, 'metadata': {}, 'output_type': 'execute_result'}], 'source': ['df.dropna(axis = 0)']}, {'cell_type': 'code', 'execution_count': 13, 'metadata': {}, 'outputs': [], 'source': ['df.dropna??']}, {'cell_type': 'code', 'execution_count': 14, 'metadata': {}, 'outputs': [{'data': {'text/html': ['<div>\n', '<style scoped>\n', ' .dataframe tbody tr th:only-of-type {\n', ' vertical-align: middle;\n', ' }\n', '\n', ' .dataframe tbody tr th {\n', ' vertical-align: top;\n', ' }\n', '\n', ' .dataframe thead th {\n', ' text-align: right;\n', ' }\n', '</style>\n', '<table border="1" class="dataframe">\n', ' <thead>\n', ' <tr style="text-align: right;">\n', ' <th></th>\n', ' <th>C</th>\n', ' </tr>\n', ' </thead>\n', ' <tbody>\n', ' <tr>\n', ' <td>0</td>\n', ' <td>1</td>\n', ' </tr>\n', ' <tr>\n', ' <td>1</td>\n', ' <td>2</td>\n', ' </tr>\n', ' <tr>\n', ' <td>2</td>\n', ' <td>3</td>\n', ' </tr>\n', ' </tbody>\n', '</table>\n', '</div>'], 'text/plain': [' C\n', '0 1\n', '1 2\n', '2 3']}, 'execution_count': 14, 'metadata': {}, 'output_type': 'execute_result'}], 'source': ['df.dropna(axis = 1)']}, {'cell_type': 'markdown', 'metadata': {}, 'source': ['## filling value']}, {'cell_type': 'code', 'execution_count': 15, 'metadata': {}, 'outputs': [{'data': {'text/html': ['<div>\n', '<style scoped>\n', ' .dataframe tbody tr th:only-of-type {\n', ' vertical-align: middle;\n', ' }\n', '\n', ' .dataframe tbody tr th {\n', ' vertical-align: top;\n', ' }\n', '\n', ' .dataframe thead th {\n', ' text-align: right;\n', ' }\n', '</style>\n', '<table border="1" class="dataframe">\n', ' <thead>\n', ' <tr style="text-align: right;">\n', ' <th></th>\n', ' <th>A</th>\n', ' <th>B</th>\n', ' <th>C</th>\n', ' </tr>\n', ' </thead>\n', ' <tbody>\n', ' <tr>\n', ' <td>0</td>\n', ' <td>1.0</td>\n', ' <td>5.0</td>\n', ' <td>1</td>\n', ' </tr>\n', ' <tr>\n', ' <td>1</td>\n', ' <td>2.0</td>\n', ' <td>NaN</td>\n', ' <td>2</td>\n', ' </tr>\n', ' <tr>\n', ' <td>2</td>\n', ' <td>NaN</td>\n', ' <td>NaN</td>\n', ' <td>3</td>\n', ' </tr>\n', ' </tbody>\n', '</table>\n', '</div>'], 'text/plain': [' A B C\n', '0 1.0 5.0 1\n', '1 2.0 NaN 2\n', '2 NaN NaN 3']}, 'execution_count': 15, 'metadata': {}, 'output_type': 'execute_result'}], 'source': ['df']}, {'cell_type': 'code', 'execution_count': 16, 'metadata': {}, 'outputs': [{'data': {'text/html': ['<div>\n', '<style scoped>\n', ' .dataframe tbody tr th:only-of-type {\n', ' vertical-align: middle;\n', ' }\n', '\n', ' .dataframe tbody tr th {\n', ' vertical-align: top;\n', ' }\n', '\n', ' .dataframe thead th {\n', ' text-align: right;\n', ' }\n', '</style>\n', '<table border="1" class="dataframe">\n', ' <thead>\n', ' <tr style="text-align: right;">\n', ' <th></th>\n', ' <th>A</th>\n', ' <th>B</th>\n', ' <th>C</th>\n', ' </tr>\n', ' </thead>\n', ' <tbody>\n', ' <tr>\n', ' <td>0</td>\n', ' <td>1</td>\n', ' <td>5</td>\n', ' <td>1</td>\n', ' </tr>\n', ' <tr>\n', ' <td>1</td>\n', ' <td>2</td>\n', ' <td>Filling Value</td>\n', ' <td>2</td>\n', ' </tr>\n', ' <tr>\n', ' <td>2</td>\n', ' <td>Filling Value</td>\n', ' <td>Filling Value</td>\n', ' <td>3</td>\n', ' </tr>\n', ' </tbody>\n', '</table>\n', '</div>'], 'text/plain': [' A B C\n', '0 1 5 1\n', '1 2 Filling Value 2\n', '2 Filling Value Filling Value 3']}, 'execution_count': 16, 'metadata': {}, 'output_type': 'execute_result'}], 'source': ["df.fillna(value = 'Filling Value')"]}, {'cell_type': 'code', 'execution_count': 19, 'metadata': {}, 'outputs': [], 'source': ['df = pd.DataFrame(d)']}, {'cell_type': 'code', 'execution_count': 22, 'metadata': {}, 'outputs': [], 'source': ["a = df['A'].fillna(value = df['A'].mean())"]}, {'cell_type': 'code', 'execution_count': 23, 'metadata': {}, 'outputs': [{'data': {'text/html': ['<div>\n', '<style scoped>\n', ' .dataframe tbody tr th:only-of-type {\n', ' vertical-align: middle;\n', ' }\n', '\n', ' .dataframe tbody tr th {\n', ' vertical-align: top;\n', ' }\n', '\n', ' .dataframe thead th {\n', ' text-align: right;\n', ' }\n', '</style>\n', '<table border="1" class="dataframe">\n', ' <thead>\n', ' <tr style="text-align: right;">\n', ' <th></th>\n', ' <th>A</th>\n', ' <th>B</th>\n', ' <th>C</th>\n', ' </tr>\n', ' </thead>\n', ' <tbody>\n', ' <tr>\n', ' <td>0</td>\n', ' <td>1.0</td>\n', ' <td>5.0</td>\n', ' <td>1</td>\n', ' </tr>\n', ' <tr>\n', ' <td>1</td>\n', ' <td>2.0</td>\n', ' <td>NaN</td>\n', ' <td>2</td>\n', ' </tr>\n', ' <tr>\n', ' <td>2</td>\n', ' <td>NaN</td>\n', ' <td>NaN</td>\n', ' <td>3</td>\n', ' </tr>\n', ' </tbody>\n', '</table>\n', '</div>'], 'text/plain': [' A B C\n', '0 1.0 5.0 1\n', '1 2.0 NaN 2\n', '2 NaN NaN 3']}, 'execution_count': 23, 'metadata': {}, 'output_type': 'execute_result'}], 'source': ['df']}, {'cell_type': 'code', 'execution_count': 24, 'metadata': {}, 'outputs': [{'data': {'text/plain': ['0 1.0\n', '1 2.0\n', '2 1.5\n', 'Name: A, dtype: float64']}, 'execution_count': 24, 'metadata': {}, 'output_type': 'execute_result'}], 'source': ['a']}, {'cell_type': 'code', 'execution_count': 25, 'metadata': {}, 'outputs': [{'data': {'text/html': ['<div>\n', '<style scoped>\n', ' .dataframe tbody tr th:only-of-type {\n', ' vertical-align: middle;\n', ' }\n', '\n', ' .dataframe tbody tr th {\n', ' vertical-align: top;\n', ' }\n', '\n', ' .dataframe thead th {\n', ' text-align: right;\n', ' }\n', '</style>\n', '<table border="1" class="dataframe">\n', ' <thead>\n', ' <tr style="text-align: right;">\n', ' <th></th>\n', ' <th>A</th>\n', ' <th>B</th>\n', ' <th>C</th>\n', ' </tr>\n', ' </thead>\n', ' <tbody>\n', ' <tr>\n', ' <td>0</td>\n', ' <td>1.0</td>\n', ' <td>5.0</td>\n', ' <td>1</td>\n', ' </tr>\n', ' <tr>\n', ' <td>1</td>\n', ' <td>2.0</td>\n', ' <td>NaN</td>\n', ' <td>2</td>\n', ' </tr>\n', ' <tr>\n', ' <td>2</td>\n', ' <td>NaN</td>\n', ' <td>NaN</td>\n', ' <td>3</td>\n', ' </tr>\n', ' </tbody>\n', '</table>\n', '</div>'], 'text/plain': [' A B C\n', '0 1.0 5.0 1\n', '1 2.0 NaN 2\n', '2 NaN NaN 3']}, 'execution_count': 25, 'metadata': {}, 'output_type': 'execute_result'}], 'source': ['df']}, {'cell_type': 'code', 'execution_count': 26, 'metadata': {}, 'outputs': [{'data': {'text/plain': ['0 1.0\n', '1 2.0\n', '2 1.5\n', 'Name: A, dtype: float64']}, 'execution_count': 26, 'metadata': {}, 'output_type': 'execute_result'}], 'source': ["df['A'].fillna(value = df['A'].mean())"]}, {'cell_type': 'code', 'execution_count': 27, 'metadata': {}, 'outputs': [{'data': {'text/html': ['<div>\n', '<style scoped>\n', ' .dataframe tbody tr th:only-of-type {\n', ' vertical-align: middle;\n', ' }\n', '\n', ' .dataframe tbody tr th {\n', ' vertical-align: top;\n', ' }\n', '\n', ' .dataframe thead th {\n', ' text-align: right;\n', ' }\n', '</style>\n', '<table border="1" class="dataframe">\n', ' <thead>\n', ' <tr style="text-align: right;">\n', ' <th></th>\n', ' <th>A</th>\n', ' <th>B</th>\n', ' <th>C</th>\n', ' </tr>\n', ' </thead>\n', ' <tbody>\n', ' <tr>\n', ' <td>0</td>\n', ' <td>1.0</td>\n', ' <td>5.0</td>\n', ' <td>1</td>\n', ' </tr>\n', ' <tr>\n', ' <td>1</td>\n', ' <td>2.0</td>\n', ' <td>NaN</td>\n', ' <td>2</td>\n', ' </tr>\n', ' <tr>\n', ' <td>2</td>\n', ' <td>NaN</td>\n', ' <td>NaN</td>\n', ' <td>3</td>\n', ' </tr>\n', ' </tbody>\n', '</table>\n', '</div>'], 'text/plain': [' A B C\n', '0 1.0 5.0 1\n', '1 2.0 NaN 2\n', '2 NaN NaN 3']}, 'execution_count': 27, 'metadata': {}, 'output_type': 'execute_result'}], 'source': ['df']}, {'cell_type': 'code', 'execution_count': 28, 'metadata': {}, 'outputs': [], 'source': ['df.fillna??']}, {'cell_type': 'code', 'execution_count': 29, 'metadata': {}, 'outputs': [], 'source': ["df['A'].fillna(value = df['A'].mean(), inplace = True)"]}, {'cell_type': 'code', 'execution_count': 30, 'metadata': {}, 'outputs': [{'data': {'text/html': ['<div>\n', '<style scoped>\n', ' .dataframe tbody tr th:only-of-type {\n', ' vertical-align: middle;\n', ' }\n', '\n', ' .dataframe tbody tr th {\n', ' vertical-align: top;\n', ' }\n', '\n', ' .dataframe thead th {\n', ' text-align: right;\n', ' }\n', '</style>\n', '<table border="1" class="dataframe">\n', ' <thead>\n', ' <tr style="text-align: right;">\n', ' <th></th>\n', ' <th>A</th>\n', ' <th>B</th>\n', ' <th>C</th>\n', ' </tr>\n', ' </thead>\n', ' <tbody>\n', ' <tr>\n', ' <td>0</td>\n', ' <td>1.0</td>\n', ' <td>5.0</td>\n', ' <td>1</td>\n', ' </tr>\n', ' <tr>\n', ' <td>1</td>\n', ' <td>2.0</td>\n', ' <td>NaN</td>\n', ' <td>2</td>\n', ' </tr>\n', ' <tr>\n', ' <td>2</td>\n', ' <td>1.5</td>\n', ' <td>NaN</td>\n', ' <td>3</td>\n', ' </tr>\n', ' </tbody>\n', '</table>\n', '</div>'], 'text/plain': [' A B C\n', '0 1.0 5.0 1\n', '1 2.0 NaN 2\n', '2 1.5 NaN 3']}, 'execution_count': 30, 'metadata': {}, 'output_type': 'execute_result'}], 'source': ['df']}, {'cell_type': 'markdown', 'metadata': {}, 'source': ['# Group By']}, {'cell_type': 'code', 'execution_count': 31, 'metadata': {}, 'outputs': [], 'source': ['data = {\n', " 'Company':['Google', 'Google', 'MSFT', 'FB','FB','IBM'],\n", " 'Person': ['Sam','Nihad','Any','Van','Rakib','Ovi'],\n", " 'Sales': [200, 120, 340, 124, 243, 350]\n", '}']}, {'cell_type': 'code', 'execution_count': 32, 'metadata': {}, 'outputs': [], 'source': ['df = pd.DataFrame(data)']}, {'cell_type': 'code', 'execution_count': 33, 'metadata': {}, 'outputs': [{'data': {'text/html': ['<div>\n', '<style scoped>\n', ' .dataframe tbody tr th:only-of-type {\n', ' vertical-align: middle;\n', ' }\n', '\n', ' .dataframe tbody tr th {\n', ' vertical-align: top;\n', ' }\n', '\n', ' .dataframe thead th {\n', ' text-align: right;\n', ' }\n', '</style>\n', '<table border="1" class="dataframe">\n', ' <thead>\n', ' <tr style="text-align: right;">\n', ' <th></th>\n', ' <th>Company</th>\n', ' <th>Person</th>\n', ' <th>Sales</th>\n', ' </tr>\n', ' </thead>\n', ' <tbody>\n', ' <tr>\n', ' <td>0</td>\n', ' <td>Google</td>\n', ' <td>Sam</td>\n', ' <td>200</td>\n', ' </tr>\n', ' <tr>\n', ' <td>1</td>\n', ' <td>Google</td>\n', ' <td>Nihad</td>\n', ' <td>120</td>\n', ' </tr>\n', ' <tr>\n', ' <td>2</td>\n', ' <td>MSFT</td>\n', ' <td>Any</td>\n', ' <td>340</td>\n', ' </tr>\n', ' <tr>\n', ' <td>3</td>\n', ' <td>FB</td>\n', ' <td>Van</td>\n', ' <td>124</td>\n', ' </tr>\n', ' <tr>\n', ' <td>4</td>\n', ' <td>FB</td>\n', ' <td>Rakib</td>\n', ' <td>243</td>\n', ' </tr>\n', ' <tr>\n', ' <td>5</td>\n', ' <td>IBM</td>\n', ' <td>Ovi</td>\n', ' <td>350</td>\n', ' </tr>\n', ' </tbody>\n', '</table>\n', '</div>'], 'text/plain': [' Company Person Sales\n', '0 Google Sam 200\n', '1 Google Nihad 120\n', '2 MSFT Any 340\n', '3 FB Van 124\n', '4 FB Rakib 243\n', '5 IBM Ovi 350']}, 'execution_count': 33, 'metadata': {}, 'output_type': 'execute_result'}], 'source': ['df']}, {'cell_type': 'code', 'execution_count': 34, 'metadata': {}, 'outputs': [], 'source': ["byComp = df.groupby('Company')"]}, {'cell_type': 'code', 'execution_count': 35, 'metadata': {}, 'outputs': [{'data': {'text/html': ['<div>\n', '<style scoped>\n', ' .dataframe tbody tr th:only-of-type {\n', ' vertical-align: middle;\n', ' }\n', '\n', ' .dataframe tbody tr th {\n', ' vertical-align: top;\n', ' }\n', '\n', ' .dataframe thead th {\n', ' text-align: right;\n', ' }\n', '</style>\n', '<table border="1" class="dataframe">\n', ' <thead>\n', ' <tr style="text-align: right;">\n', ' <th></th>\n', ' <th>Sales</th>\n', ' </tr>\n', ' <tr>\n', ' <th>Company</th>\n', ' <th></th>\n', ' </tr>\n', ' </thead>\n', ' <tbody>\n', ' <tr>\n', ' <td>FB</td>\n', ' <td>183.5</td>\n', ' </tr>\n', ' <tr>\n', ' <td>Google</td>\n', ' <td>160.0</td>\n', ' </tr>\n', ' <tr>\n', ' <td>IBM</td>\n', ' <td>350.0</td>\n', ' </tr>\n', ' <tr>\n', ' <td>MSFT</td>\n', ' <td>340.0</td>\n', ' </tr>\n', ' </tbody>\n', '</table>\n', '</div>'], 'text/plain': [' Sales\n', 'Company \n', 'FB 183.5\n', 'Google 160.0\n', 'IBM 350.0\n', 'MSFT 340.0']}, 'execution_count': 35, 'metadata': {}, 'output_type': 'execute_result'}], 'source': ['byComp.mean()']}, {'cell_type': 'code', 'execution_count': 36, 'metadata': {}, 'outputs': [{'data': {'text/html': ['<div>\n', '<style scoped>\n', ' .dataframe tbody tr th:only-of-type {\n', ' vertical-align: middle;\n', ' }\n', '\n', ' .dataframe tbody tr th {\n', ' vertical-align: top;\n', ' }\n', '\n', ' .dataframe thead th {\n', ' text-align: right;\n', ' }\n', '</style>\n', '<table border="1" class="dataframe">\n', ' <thead>\n', ' <tr style="text-align: right;">\n', ' <th></th>\n', ' <th>Sales</th>\n', ' </tr>\n', ' <tr>\n', ' <th>Company</th>\n', ' <th></th>\n', ' </tr>\n', ' </thead>\n', ' <tbody>\n', ' <tr>\n', ' <td>FB</td>\n', ' <td>367</td>\n', ' </tr>\n', ' <tr>\n', ' <td>Google</td>\n', ' <td>320</td>\n', ' </tr>\n', ' <tr>\n', ' <td>IBM</td>\n', ' <td>350</td>\n', ' </tr>\n', ' <tr>\n', ' <td>MSFT</td>\n', ' <td>340</td>\n', ' </tr>\n', ' </tbody>\n', '</table>\n', '</div>'], 'text/plain': [' Sales\n', 'Company \n', 'FB 367\n', 'Google 320\n', 'IBM 350\n', 'MSFT 340']}, 'execution_count': 36, 'metadata': {}, 'output_type': 'execute_result'}], 'source': ['byComp.sum()']}, {'cell_type': 'code', 'execution_count': 37, 'metadata': {}, 'outputs': [{'data': {'text/html': ['<div>\n', '<style scoped>\n', ' .dataframe tbody tr th:only-of-type {\n', ' vertical-align: middle;\n', ' }\n', '\n', ' .dataframe tbody tr th {\n', ' vertical-align: top;\n', ' }\n', '\n', ' .dataframe thead th {\n', ' text-align: right;\n', ' }\n', '</style>\n', '<table border="1" class="dataframe">\n', ' <thead>\n', ' <tr style="text-align: right;">\n', ' <th></th>\n', ' <th>Company</th>\n', ' <th>Person</th>\n', ' <th>Sales</th>\n', ' </tr>\n', ' </thead>\n', ' <tbody>\n', ' <tr>\n', ' <td>0</td>\n', ' <td>Google</td>\n', ' <td>Sam</td>\n', ' <td>200</td>\n', ' </tr>\n', ' <tr>\n', ' <td>1</td>\n', ' <td>Google</td>\n', ' <td>Nihad</td>\n', ' <td>120</td>\n', ' </tr>\n', ' <tr>\n', ' <td>2</td>\n', ' <td>MSFT</td>\n', ' <td>Any</td>\n', ' <td>340</td>\n', ' </tr>\n', ' <tr>\n', ' <td>3</td>\n', ' <td>FB</td>\n', ' <td>Van</td>\n', ' <td>124</td>\n', ' </tr>\n', ' <tr>\n', ' <td>4</td>\n', ' <td>FB</td>\n', ' <td>Rakib</td>\n', ' <td>243</td>\n', ' </tr>\n', ' <tr>\n', ' <td>5</td>\n', ' <td>IBM</td>\n', ' <td>Ovi</td>\n', ' <td>350</td>\n', ' </tr>\n', ' </tbody>\n', '</table>\n', '</div>'], 'text/plain': [' Company Person Sales\n', '0 Google Sam 200\n', '1 Google Nihad 120\n', '2 MSFT Any 340\n', '3 FB Van 124\n', '4 FB Rakib 243\n', '5 IBM Ovi 350']}, 'execution_count': 37, 'metadata': {}, 'output_type': 'execute_result'}], 'source': ['df']}, {'cell_type': 'code', 'execution_count': 38, 'metadata': {}, 'outputs': [{'data': {'text/html': ['<div>\n', '<style scoped>\n', ' .dataframe tbody tr th:only-of-type {\n', ' vertical-align: middle;\n', ' }\n', '\n', ' .dataframe tbody tr th {\n', ' vertical-align: top;\n', ' }\n', '\n', ' .dataframe thead th {\n', ' text-align: right;\n', ' }\n', '</style>\n', '<table border="1" class="dataframe">\n', ' <thead>\n', ' <tr style="text-align: right;">\n', ' <th></th>\n', ' <th>Sales</th>\n', ' </tr>\n', ' <tr>\n', ' <th>Company</th>\n', ' <th></th>\n', ' </tr>\n', ' </thead>\n', ' <tbody>\n', ' <tr>\n', ' <td>FB</td>\n', ' <td>84.145707</td>\n', ' </tr>\n', ' <tr>\n', ' <td>Google</td>\n', ' <td>56.568542</td>\n', ' </tr>\n', ' <tr>\n', ' <td>IBM</td>\n', ' <td>NaN</td>\n', ' </tr>\n', ' <tr>\n', ' <td>MSFT</td>\n', ' <td>NaN</td>\n', ' </tr>\n', ' </tbody>\n', '</table>\n', '</div>'], 'text/plain': [' Sales\n', 'Company \n', 'FB 84.145707\n', 'Google 56.568542\n', 'IBM NaN\n', 'MSFT NaN']}, 'execution_count': 38, 'metadata': {}, 'output_type': 'execute_result'}], 'source': ['byComp.std()']}, {'cell_type': 'code', 'execution_count': 39, 'metadata': {}, 'outputs': [{'data': {'text/html': ['<div>\n', '<style scoped>\n', ' .dataframe tbody tr th:only-of-type {\n', ' vertical-align: middle;\n', ' }\n', '\n', ' .dataframe tbody tr th {\n', ' vertical-align: top;\n', ' }\n', '\n', ' .dataframe thead th {\n', ' text-align: right;\n', ' }\n', '</style>\n', '<table border="1" class="dataframe">\n', ' <thead>\n', ' <tr style="text-align: right;">\n', ' <th></th>\n', ' <th>Person</th>\n', ' <th>Sales</th>\n', ' </tr>\n', ' <tr>\n', ' <th>Company</th>\n', ' <th></th>\n', ' <th></th>\n', ' </tr>\n', ' </thead>\n', ' <tbody>\n', ' <tr>\n', ' <td>FB</td>\n', ' <td>2</td>\n', ' <td>2</td>\n', ' </tr>\n', ' <tr>\n', ' <td>Google</td>\n', ' <td>2</td>\n', ' <td>2</td>\n', ' </tr>\n', ' <tr>\n', ' <td>IBM</td>\n', ' <td>1</td>\n', ' <td>1</td>\n', ' </tr>\n', ' <tr>\n', ' <td>MSFT</td>\n', ' <td>1</td>\n', ' <td>1</td>\n', ' </tr>\n', ' </tbody>\n', '</table>\n', '</div>'], 'text/plain': [' Person Sales\n', 'Company \n', 'FB 2 2\n', 'Google 2 2\n', 'IBM 1 1\n', 'MSFT 1 1']}, 'execution_count': 39, 'metadata': {}, 'output_type': 'execute_result'}], 'source': ["df.groupby('Company').count()"]}, {'cell_type': 'code', 'execution_count': 40, 'metadata': {}, 'outputs': [{'data': {'text/html': ['<div>\n', '<style scoped>\n', ' .dataframe tbody tr th:only-of-type {\n', ' vertical-align: middle;\n', ' }\n', '\n', ' .dataframe tbody tr th {\n', ' vertical-align: top;\n', ' }\n', '\n', ' .dataframe thead th {\n', ' text-align: right;\n', ' }\n', '</style>\n', '<table border="1" class="dataframe">\n', ' <thead>\n', ' <tr style="text-align: right;">\n', ' <th></th>\n', ' <th>Company</th>\n', ' <th>Person</th>\n', ' <th>Sales</th>\n', ' </tr>\n', ' </thead>\n', ' <tbody>\n', ' <tr>\n', ' <td>0</td>\n', ' <td>Google</td>\n', ' <td>Sam</td>\n', ' <td>200</td>\n', ' </tr>\n', ' <tr>\n', ' <td>1</td>\n', ' <td>Google</td>\n', ' <td>Nihad</td>\n', ' <td>120</td>\n', ' </tr>\n', ' <tr>\n', ' <td>2</td>\n', ' <td>MSFT</td>\n', ' <td>Any</td>\n', ' <td>340</td>\n', ' </tr>\n', ' <tr>\n', ' <td>3</td>\n', ' <td>FB</td>\n', ' <td>Van</td>\n', ' <td>124</td>\n', ' </tr>\n', ' <tr>\n', ' <td>4</td>\n', ' <td>FB</td>\n', ' <td>Rakib</td>\n', ' <td>243</td>\n', ' </tr>\n', ' <tr>\n', ' <td>5</td>\n', ' <td>IBM</td>\n', ' <td>Ovi</td>\n', ' <td>350</td>\n', ' </tr>\n', ' </tbody>\n', '</table>\n', '</div>'], 'text/plain': [' Company Person Sales\n', '0 Google Sam 200\n', '1 Google Nihad 120\n', '2 MSFT Any 340\n', '3 FB Van 124\n', '4 FB Rakib 243\n', '5 IBM Ovi 350']}, 'execution_count': 40, 'metadata': {}, 'output_type': 'execute_result'}], 'source': ['df']}, {'cell_type': 'code', 'execution_count': 41, 'metadata': {}, 'outputs': [{'data': {'text/html': ['<div>\n', '<style scoped>\n', ' .dataframe tbody tr th:only-of-type {\n', ' vertical-align: middle;\n', ' }\n', '\n', ' .dataframe tbody tr th {\n', ' vertical-align: top;\n', ' }\n', '\n', ' .dataframe thead tr th {\n', ' text-align: left;\n', ' }\n', '\n', ' .dataframe thead tr:last-of-type th {\n', ' text-align: right;\n', ' }\n', '</style>\n', '<table border="1" class="dataframe">\n', ' <thead>\n', ' <tr>\n', ' <th></th>\n', ' <th colspan="8" halign="left">Sales</th>\n', ' </tr>\n', ' <tr>\n', ' <th></th>\n', ' <th>count</th>\n', ' <th>mean</th>\n', ' <th>std</th>\n', ' <th>min</th>\n', ' <th>25%</th>\n', ' <th>50%</th>\n', ' <th>75%</th>\n', ' <th>max</th>\n', ' </tr>\n', ' <tr>\n', ' <th>Company</th>\n', ' <th></th>\n', ' <th></th>\n', ' <th></th>\n', ' <th></th>\n', ' <th></th>\n', ' <th></th>\n', ' <th></th>\n', ' <th></th>\n', ' </tr>\n', ' </thead>\n', ' <tbody>\n', ' <tr>\n', ' <td>FB</td>\n', ' <td>2.0</td>\n', ' <td>183.5</td>\n', ' <td>84.145707</td>\n', ' <td>124.0</td>\n', ' <td>153.75</td>\n', ' <td>183.5</td>\n', ' <td>213.25</td>\n', ' <td>243.0</td>\n', ' </tr>\n', ' <tr>\n', ' <td>Google</td>\n', ' <td>2.0</td>\n', ' <td>160.0</td>\n', ' <td>56.568542</td>\n', ' <td>120.0</td>\n', ' <td>140.00</td>\n', ' <td>160.0</td>\n', ' <td>180.00</td>\n', ' <td>200.0</td>\n', ' </tr>\n', ' <tr>\n', ' <td>IBM</td>\n', ' <td>1.0</td>\n', ' <td>350.0</td>\n', ' <td>NaN</td>\n', ' <td>350.0</td>\n', ' <td>350.00</td>\n', ' <td>350.0</td>\n', ' <td>350.00</td>\n', ' <td>350.0</td>\n', ' </tr>\n', ' <tr>\n', ' <td>MSFT</td>\n', ' <td>1.0</td>\n', ' <td>340.0</td>\n', ' <td>NaN</td>\n', ' <td>340.0</td>\n', ' <td>340.00</td>\n', ' <td>340.0</td>\n', ' <td>340.00</td>\n', ' <td>340.0</td>\n', ' </tr>\n', ' </tbody>\n', '</table>\n', '</div>'], 'text/plain': [' Sales \n', ' count mean std min 25% 50% 75% max\n', 'Company \n', 'FB 2.0 183.5 84.145707 124.0 153.75 183.5 213.25 243.0\n', 'Google 2.0 160.0 56.568542 120.0 140.00 160.0 180.00 200.0\n', 'IBM 1.0 350.0 NaN 350.0 350.00 350.0 350.00 350.0\n', 'MSFT 1.0 340.0 NaN 340.0 340.00 340.0 340.00 340.0']}, 'execution_count': 41, 'metadata': {}, 'output_type': 'execute_result'}], 'source': ["df.groupby('Company').describe()"]}, {'cell_type': 'markdown', 'metadata': {}, 'source': ['# Merging, Joining and Concatenating']}, {'cell_type': 'markdown', 'metadata': {}, 'source': ['## Concatenating']}, {'cell_type': 'code', 'execution_count': 42, 'metadata': {}, 'outputs': [], 'source': ["df1 = pd.DataFrame(np.random.randint(1, 20, size = (4, 3)), [1,2,3,4], ['W', 'X', 'Y'])"]}, {'cell_type': 'code', 'execution_count': 51, 'metadata': {}, 'outputs': [], 'source': ["df2 = pd.DataFrame(np.random.randint(20,40, size = (4, 3)), [5,6,7,8], ['W', 'X', 'Y'])"]}, {'cell_type': 'code', 'execution_count': 52, 'metadata': {}, 'outputs': [], 'source': ["df3 = pd.DataFrame(np.random.randint(40,60, size = (4, 3)), [9,10,11,12], ['W', 'X', 'Y'])"]}, {'cell_type': 'code', 'execution_count': 53, 'metadata': {}, 'outputs': [{'data': {'text/html': ['<div>\n', '<style scoped>\n', ' .dataframe tbody tr th:only-of-type {\n', ' vertical-align: middle;\n', ' }\n', '\n', ' .dataframe tbody tr th {\n', ' vertical-align: top;\n', ' }\n', '\n', ' .dataframe thead th {\n', ' text-align: right;\n', ' }\n', '</style>\n', '<table border="1" class="dataframe">\n', ' <thead>\n', ' <tr style="text-align: right;">\n', ' <th></th>\n', ' <th>W</th>\n', ' <th>X</th>\n', ' <th>Y</th>\n', ' </tr>\n', ' </thead>\n', ' <tbody>\n', ' <tr>\n', ' <td>1</td>\n', ' <td>9</td>\n', ' <td>10</td>\n', ' <td>19</td>\n', ' </tr>\n', ' <tr>\n', ' <td>2</td>\n', ' <td>14</td>\n', ' <td>15</td>\n', ' <td>8</td>\n', ' </tr>\n', ' <tr>\n', ' <td>3</td>\n', ' <td>6</td>\n', ' <td>13</td>\n', ' <td>6</td>\n', ' </tr>\n', ' <tr>\n', ' <td>4</td>\n', ' <td>4</td>\n', ' <td>11</td>\n', ' <td>14</td>\n', ' </tr>\n', ' </tbody>\n', '</table>\n', '</div>'], 'text/plain': [' W X Y\n', '1 9 10 19\n', '2 14 15 8\n', '3 6 13 6\n', '4 4 11 14']}, 'execution_count': 53, 'metadata': {}, 'output_type': 'execute_result'}], 'source': ['df1']}, {'cell_type': 'code', 'execution_count': 54, 'metadata': {}, 'outputs': [{'data': {'text/html': ['<div>\n', '<style scoped>\n', ' .dataframe tbody tr th:only-of-type {\n', ' vertical-align: middle;\n', ' }\n', '\n', ' .dataframe tbody tr th {\n', ' vertical-align: top;\n', ' }\n', '\n', ' .dataframe thead th {\n', ' text-align: right;\n', ' }\n', '</style>\n', '<table border="1" class="dataframe">\n', ' <thead>\n', ' <tr style="text-align: right;">\n', ' <th></th>\n', ' <th>W</th>\n', ' <th>X</th>\n', ' <th>Y</th>\n', ' </tr>\n', ' </thead>\n', ' <tbody>\n', ' <tr>\n', ' <td>5</td>\n', ' <td>32</td>\n', ' <td>26</td>\n', ' <td>24</td>\n', ' </tr>\n', ' <tr>\n', ' <td>6</td>\n', ' <td>25</td>\n', ' <td>35</td>\n', ' <td>20</td>\n', ' </tr>\n', ' <tr>\n', ' <td>7</td>\n', ' <td>29</td>\n', ' <td>36</td>\n', ' <td>25</td>\n', ' </tr>\n', ' <tr>\n', ' <td>8</td>\n', ' <td>23</td>\n', ' <td>27</td>\n', ' <td>29</td>\n', ' </tr>\n', ' </tbody>\n', '</table>\n', '</div>'], 'text/plain': [' W X Y\n', '5 32 26 24\n', '6 25 35 20\n', '7 29 36 25\n', '8 23 27 29']}, 'execution_count': 54, 'metadata': {}, 'output_type': 'execute_result'}], 'source': ['df2']}, {'cell_type': 'code', 'execution_count': 55, 'metadata': {}, 'outputs': [{'data': {'text/html': ['<div>\n', '<style scoped>\n', ' .dataframe tbody tr th:only-of-type {\n', ' vertical-align: middle;\n', ' }\n', '\n', ' .dataframe tbody tr th {\n', ' vertical-align: top;\n', ' }\n', '\n', ' .dataframe thead th {\n', ' text-align: right;\n', ' }\n', '</style>\n', '<table border="1" class="dataframe">\n', ' <thead>\n', ' <tr style="text-align: right;">\n', ' <th></th>\n', ' <th>W</th>\n', ' <th>X</th>\n', ' <th>Y</th>\n', ' </tr>\n', ' </thead>\n', ' <tbody>\n', ' <tr>\n', ' <td>9</td>\n', ' <td>52</td>\n', ' <td>50</td>\n', ' <td>47</td>\n', ' </tr>\n', ' <tr>\n', ' <td>10</td>\n', ' <td>54</td>\n', ' <td>53</td>\n', ' <td>40</td>\n', ' </tr>\n', ' <tr>\n', ' <td>11</td>\n', ' <td>57</td>\n', ' <td>53</td>\n', ' <td>51</td>\n', ' </tr>\n', ' <tr>\n', ' <td>12</td>\n', ' <td>43</td>\n', ' <td>58</td>\n', ' <td>47</td>\n', ' </tr>\n', ' </tbody>\n', '</table>\n', '</div>'], 'text/plain': [' W X Y\n', '9 52 50 47\n', '10 54 53 40\n', '11 57 53 51\n', '12 43 58 47']}, 'execution_count': 55, 'metadata': {}, 'output_type': 'execute_result'}], 'source': ['df3']}, {'cell_type': 'code', 'execution_count': 56, 'metadata': {}, 'outputs': [], 'source': ['farme = [df1, df2, df3]']}, {'cell_type': 'code', 'execution_count': 57, 'metadata': {}, 'outputs': [{'data': {'text/html': ['<div>\n', '<style scoped>\n', ' .dataframe tbody tr th:only-of-type {\n', ' vertical-align: middle;\n', ' }\n', '\n', ' .dataframe tbody tr th {\n', ' vertical-align: top;\n', ' }\n', '\n', ' .dataframe thead th {\n', ' text-align: right;\n', ' }\n', '</style>\n', '<table border="1" class="dataframe">\n', ' <thead>\n', ' <tr style="text-align: right;">\n', ' <th></th>\n', ' <th>W</th>\n', ' <th>X</th>\n', ' <th>Y</th>\n', ' </tr>\n', ' </thead>\n', ' <tbody>\n', ' <tr>\n', ' <td>1</td>\n', ' <td>9</td>\n', ' <td>10</td>\n', ' <td>19</td>\n', ' </tr>\n', ' <tr>\n', ' <td>2</td>\n', ' <td>14</td>\n', ' <td>15</td>\n', ' <td>8</td>\n', ' </tr>\n', ' <tr>\n', ' <td>3</td>\n', ' <td>6</td>\n', ' <td>13</td>\n', ' <td>6</td>\n', ' </tr>\n', ' <tr>\n', ' <td>4</td>\n', ' <td>4</td>\n', ' <td>11</td>\n', ' <td>14</td>\n', ' </tr>\n', ' <tr>\n', ' <td>5</td>\n', ' <td>32</td>\n', ' <td>26</td>\n', ' <td>24</td>\n', ' </tr>\n', ' <tr>\n', ' <td>6</td>\n', ' <td>25</td>\n', ' <td>35</td>\n', ' <td>20</td>\n', ' </tr>\n', ' <tr>\n', ' <td>7</td>\n', ' <td>29</td>\n', ' <td>36</td>\n', ' <td>25</td>\n', ' </tr>\n', ' <tr>\n', ' <td>8</td>\n', ' <td>23</td>\n', ' <td>27</td>\n', ' <td>29</td>\n', ' </tr>\n', ' <tr>\n', ' <td>9</td>\n', ' <td>52</td>\n', ' <td>50</td>\n', ' <td>47</td>\n', ' </tr>\n', ' <tr>\n', ' <td>10</td>\n', ' <td>54</td>\n', ' <td>53</td>\n', ' <td>40</td>\n', ' </tr>\n', ' <tr>\n', ' <td>11</td>\n', ' <td>57</td>\n', ' <td>53</td>\n', ' <td>51</td>\n', ' </tr>\n', ' <tr>\n', ' <td>12</td>\n', ' <td>43</td>\n', ' <td>58</td>\n', ' <td>47</td>\n', ' </tr>\n', ' </tbody>\n', '</table>\n', '</div>'], 'text/plain': [' W X Y\n', '1 9 10 19\n', '2 14 15 8\n', '3 6 13 6\n', '4 4 11 14\n', '5 32 26 24\n', '6 25 35 20\n', '7 29 36 25\n', '8 23 27 29\n', '9 52 50 47\n', '10 54 53 40\n', '11 57 53 51\n', '12 43 58 47']}, 'execution_count': 57, 'metadata': {}, 'output_type': 'execute_result'}], 'source': ['pd.concat(farme)']}, {'cell_type': 'code', 'execution_count': 58, 'metadata': {}, 'outputs': [{'data': {'text/html': ['<div>\n', '<style scoped>\n', ' .dataframe tbody tr th:only-of-type {\n', ' vertical-align: middle;\n', ' }\n', '\n', ' .dataframe tbody tr th {\n', ' vertical-align: top;\n', ' }\n', '\n', ' .dataframe thead th {\n', ' text-align: right;\n', ' }\n', '</style>\n', '<table border="1" class="dataframe">\n', ' <thead>\n', ' <tr style="text-align: right;">\n', ' <th></th>\n', ' <th>W</th>\n', ' <th>X</th>\n', ' <th>Y</th>\n', ' <th>W</th>\n', ' <th>X</th>\n', ' <th>Y</th>\n', ' <th>W</th>\n', ' <th>X</th>\n', ' <th>Y</th>\n', ' </tr>\n', ' </thead>\n', ' <tbody>\n', ' <tr>\n', ' <td>1</td>\n', ' <td>9.0</td>\n', ' <td>10.0</td>\n', ' <td>19.0</td>\n', ' <td>NaN</td>\n', ' <td>NaN</td>\n', ' <td>NaN</td>\n', ' <td>NaN</td>\n', ' <td>NaN</td>\n', ' <td>NaN</td>\n', ' </tr>\n', ' <tr>\n', ' <td>2</td>\n', ' <td>14.0</td>\n', ' <td>15.0</td>\n', ' <td>8.0</td>\n', ' <td>NaN</td>\n', ' <td>NaN</td>\n', ' <td>NaN</td>\n', ' <td>NaN</td>\n', ' <td>NaN</td>\n', ' <td>NaN</td>\n', ' </tr>\n', ' <tr>\n', ' <td>3</td>\n', ' <td>6.0</td>\n', ' <td>13.0</td>\n', ' <td>6.0</td>\n', ' <td>NaN</td>\n', ' <td>NaN</td>\n', ' <td>NaN</td>\n', ' <td>NaN</td>\n', ' <td>NaN</td>\n', ' <td>NaN</td>\n', ' </tr>\n', ' <tr>\n', ' <td>4</td>\n', ' <td>4.0</td>\n', ' <td>11.0</td>\n', ' <td>14.0</td>\n', ' <td>NaN</td>\n', ' <td>NaN</td>\n', ' <td>NaN</td>\n', ' <td>NaN</td>\n', ' <td>NaN</td>\n', ' <td>NaN</td>\n', ' </tr>\n', ' <tr>\n', ' <td>5</td>\n', ' <td>NaN</td>\n', ' <td>NaN</td>\n', ' <td>NaN</td>\n', ' <td>32.0</td>\n', ' <td>26.0</td>\n', ' <td>24.0</td>\n', ' <td>NaN</td>\n', ' <td>NaN</td>\n', ' <td>NaN</td>\n', ' </tr>\n', ' <tr>\n', ' <td>6</td>\n', ' <td>NaN</td>\n', ' <td>NaN</td>\n', ' <td>NaN</td>\n', ' <td>25.0</td>\n', ' <td>35.0</td>\n', ' <td>20.0</td>\n', ' <td>NaN</td>\n', ' <td>NaN</td>\n', ' <td>NaN</td>\n', ' </tr>\n', ' <tr>\n', ' <td>7</td>\n', ' <td>NaN</td>\n', ' <td>NaN</td>\n', ' <td>NaN</td>\n', ' <td>29.0</td>\n', ' <td>36.0</td>\n', ' <td>25.0</td>\n', ' <td>NaN</td>\n', ' <td>NaN</td>\n', ' <td>NaN</td>\n', ' </tr>\n', ' <tr>\n', ' <td>8</td>\n', ' <td>NaN</td>\n', ' <td>NaN</td>\n', ' <td>NaN</td>\n', ' <td>23.0</td>\n', ' <td>27.0</td>\n', ' <td>29.0</td>\n', ' <td>NaN</td>\n', ' <td>NaN</td>\n', ' <td>NaN</td>\n', ' </tr>\n', ' <tr>\n', ' <td>9</td>\n', ' <td>NaN</td>\n', ' <td>NaN</td>\n', ' <td>NaN</td>\n', ' <td>NaN</td>\n', ' <td>NaN</td>\n', ' <td>NaN</td>\n', ' <td>52.0</td>\n', ' <td>50.0</td>\n', ' <td>47.0</td>\n', ' </tr>\n', ' <tr>\n', ' <td>10</td>\n', ' <td>NaN</td>\n', ' <td>NaN</td>\n', ' <td>NaN</td>\n', ' <td>NaN</td>\n', ' <td>NaN</td>\n', ' <td>NaN</td>\n', ' <td>54.0</td>\n', ' <td>53.0</td>\n', ' <td>40.0</td>\n', ' </tr>\n', ' <tr>\n', ' <td>11</td>\n', ' <td>NaN</td>\n', ' <td>NaN</td>\n', ' <td>NaN</td>\n', ' <td>NaN</td>\n', ' <td>NaN</td>\n', ' <td>NaN</td>\n', ' <td>57.0</td>\n', ' <td>53.0</td>\n', ' <td>51.0</td>\n', ' </tr>\n', ' <tr>\n', ' <td>12</td>\n', ' <td>NaN</td>\n', ' <td>NaN</td>\n', ' <td>NaN</td>\n', ' <td>NaN</td>\n', ' <td>NaN</td>\n', ' <td>NaN</td>\n', ' <td>43.0</td>\n', ' <td>58.0</td>\n', ' <td>47.0</td>\n', ' </tr>\n', ' </tbody>\n', '</table>\n', '</div>'], 'text/plain': [' W X Y W X Y W X Y\n', '1 9.0 10.0 19.0 NaN NaN NaN NaN NaN NaN\n', '2 14.0 15.0 8.0 NaN NaN NaN NaN NaN NaN\n', '3 6.0 13.0 6.0 NaN NaN NaN NaN NaN NaN\n', '4 4.0 11.0 14.0 NaN NaN NaN NaN NaN NaN\n', '5 NaN NaN NaN 32.0 26.0 24.0 NaN NaN NaN\n', '6 NaN NaN NaN 25.0 35.0 20.0 NaN NaN NaN\n', '7 NaN NaN NaN 29.0 36.0 25.0 NaN NaN NaN\n', '8 NaN NaN NaN 23.0 27.0 29.0 NaN NaN NaN\n', '9 NaN NaN NaN NaN NaN NaN 52.0 50.0 47.0\n', '10 NaN NaN NaN NaN NaN NaN 54.0 53.0 40.0\n', '11 NaN NaN NaN NaN NaN NaN 57.0 53.0 51.0\n', '12 NaN NaN NaN NaN NaN NaN 43.0 58.0 47.0']}, 'execution_count': 58, 'metadata': {}, 'output_type': 'execute_result'}], 'source': ['pd.concat(farme, axis = 1)']}, {'cell_type': 'markdown', 'metadata': {}, 'source': ['## Merging']}, {'cell_type': 'code', 'execution_count': 59, 'metadata': {}, 'outputs': [], 'source': ['left = {\n', " 'key':['k0','k1','k2','k3'],\n", " 'A':[10,20,30,40],\n", " 'B':[1,2,3,4]\n", '}']}, {'cell_type': 'code', 'execution_count': 60, 'metadata': {}, 'outputs': [], 'source': ['right = {\n', " 'key':['k0','k1','k2','k3'],\n", " 'C':[100,200,300,400],\n", " 'D':[11,12,13,14]\n", '}']}, {'cell_type': 'code', 'execution_count': 61, 'metadata': {}, 'outputs': [], 'source': ['left = pd.DataFrame(left)']}, {'cell_type': 'code', 'execution_count': 62, 'metadata': {}, 'outputs': [], 'source': ['right = pd.DataFrame(right)']}, {'cell_type': 'code', 'execution_count': 63, 'metadata': {}, 'outputs': [{'data': {'text/html': ['<div>\n', '<style scoped>\n', ' .dataframe tbody tr th:only-of-type {\n', ' vertical-align: middle;\n', ' }\n', '\n', ' .dataframe tbody tr th {\n', ' vertical-align: top;\n', ' }\n', '\n', ' .dataframe thead th {\n', ' text-align: right;\n', ' }\n', '</style>\n', '<table border="1" class="dataframe">\n', ' <thead>\n', ' <tr style="text-align: right;">\n', ' <th></th>\n', ' <th>key</th>\n', ' <th>A</th>\n', ' <th>B</th>\n', ' </tr>\n', ' </thead>\n', ' <tbody>\n', ' <tr>\n', ' <td>0</td>\n', ' <td>k0</td>\n', ' <td>10</td>\n', ' <td>1</td>\n', ' </tr>\n', ' <tr>\n', ' <td>1</td>\n', ' <td>k1</td>\n', ' <td>20</td>\n', ' <td>2</td>\n', ' </tr>\n', ' <tr>\n', ' <td>2</td>\n', ' <td>k2</td>\n', ' <td>30</td>\n', ' <td>3</td>\n', ' </tr>\n', ' <tr>\n', ' <td>3</td>\n', ' <td>k3</td>\n', ' <td>40</td>\n', ' <td>4</td>\n', ' </tr>\n', ' </tbody>\n', '</table>\n', '</div>'], 'text/plain': [' key A B\n', '0 k0 10 1\n', '1 k1 20 2\n', '2 k2 30 3\n', '3 k3 40 4']}, 'execution_count': 63, 'metadata': {}, 'output_type': 'execute_result'}], 'source': ['left']}, {'cell_type': 'code', 'execution_count': 64, 'metadata': {}, 'outputs': [{'data': {'text/html': ['<div>\n', '<style scoped>\n', ' .dataframe tbody tr th:only-of-type {\n', ' vertical-align: middle;\n', ' }\n', '\n', ' .dataframe tbody tr th {\n', ' vertical-align: top;\n', ' }\n', '\n', ' .dataframe thead th {\n', ' text-align: right;\n', ' }\n', '</style>\n', '<table border="1" class="dataframe">\n', ' <thead>\n', ' <tr style="text-align: right;">\n', ' <th></th>\n', ' <th>key</th>\n', ' <th>C</th>\n', ' <th>D</th>\n', ' </tr>\n', ' </thead>\n', ' <tbody>\n', ' <tr>\n', ' <td>0</td>\n', ' <td>k0</td>\n', ' <td>100</td>\n', ' <td>11</td>\n', ' </tr>\n', ' <tr>\n', ' <td>1</td>\n', ' <td>k1</td>\n', ' <td>200</td>\n', ' <td>12</td>\n', ' </tr>\n', ' <tr>\n', ' <td>2</td>\n', ' <td>k2</td>\n', ' <td>300</td>\n', ' <td>13</td>\n', ' </tr>\n', ' <tr>\n', ' <td>3</td>\n', ' <td>k3</td>\n', ' <td>400</td>\n', ' <td>14</td>\n', ' </tr>\n', ' </tbody>\n', '</table>\n', '</div>'], 'text/plain': [' key C D\n', '0 k0 100 11\n', '1 k1 200 12\n', '2 k2 300 13\n', '3 k3 400 14']}, 'execution_count': 64, 'metadata': {}, 'output_type': 'execute_result'}], 'source': ['right']}, {'cell_type': 'code', 'execution_count': 65, 'metadata': {}, 'outputs': [{'data': {'text/html': ['<div>\n', '<style scoped>\n', ' .dataframe tbody tr th:only-of-type {\n', ' vertical-align: middle;\n', ' }\n', '\n', ' .dataframe tbody tr th {\n', ' vertical-align: top;\n', ' }\n', '\n', ' .dataframe thead th {\n', ' text-align: right;\n', ' }\n', '</style>\n', '<table border="1" class="dataframe">\n', ' <thead>\n', ' <tr style="text-align: right;">\n', ' <th></th>\n', ' <th>key</th>\n', ' <th>A</th>\n', ' <th>B</th>\n', ' <th>C</th>\n', ' <th>D</th>\n', ' </tr>\n', ' </thead>\n', ' <tbody>\n', ' <tr>\n', ' <td>0</td>\n', ' <td>k0</td>\n', ' <td>10</td>\n', ' <td>1</td>\n', ' <td>100</td>\n', ' <td>11</td>\n', ' </tr>\n', ' <tr>\n', ' <td>1</td>\n', ' <td>k1</td>\n', ' <td>20</td>\n', ' <td>2</td>\n', ' <td>200</td>\n', ' <td>12</td>\n', ' </tr>\n', ' <tr>\n', ' <td>2</td>\n', ' <td>k2</td>\n', ' <td>30</td>\n', ' <td>3</td>\n', ' <td>300</td>\n', ' <td>13</td>\n', ' </tr>\n', ' <tr>\n', ' <td>3</td>\n', ' <td>k3</td>\n', ' <td>40</td>\n', ' <td>4</td>\n', ' <td>400</td>\n', ' <td>14</td>\n', ' </tr>\n', ' </tbody>\n', '</table>\n', '</div>'], 'text/plain': [' key A B C D\n', '0 k0 10 1 100 11\n', '1 k1 20 2 200 12\n', '2 k2 30 3 300 13\n', '3 k3 40 4 400 14']}, 'execution_count': 65, 'metadata': {}, 'output_type': 'execute_result'}], 'source': ["pd.merge(left, right, on='key')"]}, {'cell_type': 'code', 'execution_count': 66, 'metadata': {}, 'outputs': [], 'source': ['pd.merge??']}, {'cell_type': 'markdown', 'metadata': {}, 'source': ['## Joining']}, {'cell_type': 'code', 'execution_count': 67, 'metadata': {}, 'outputs': [], 'source': ['left = {\n', " 'A':['A0','A1','A2'],\n", " 'B':['B0','B1','B2']\n", '}']}, {'cell_type': 'code', 'execution_count': 68, 'metadata': {}, 'outputs': [], 'source': ['right = {\n', " 'C':['C0','C2','C3'],\n", " 'D':['D0','D2','D3']\n", '}']}, {'cell_type': 'code', 'execution_count': 69, 'metadata': {}, 'outputs': [], 'source': ["left = pd.DataFrame(left, index = ['k0','k1','k2'])"]}, {'cell_type': 'code', 'execution_count': 70, 'metadata': {}, 'outputs': [], 'source': ["right = pd.DataFrame(right, index = ['k0','k2','k3'])"]}, {'cell_type': 'code', 'execution_count': 71, 'metadata': {}, 'outputs': [{'data': {'text/html': ['<div>\n', '<style scoped>\n', ' .dataframe tbody tr th:only-of-type {\n', ' vertical-align: middle;\n', ' }\n', '\n', ' .dataframe tbody tr th {\n', ' vertical-align: top;\n', ' }\n', '\n', ' .dataframe thead th {\n', ' text-align: right;\n', ' }\n', '</style>\n', '<table border="1" class="dataframe">\n', ' <thead>\n', ' <tr style="text-align: right;">\n', ' <th></th>\n', ' <th>A</th>\n', ' <th>B</th>\n', ' </tr>\n', ' </thead>\n', ' <tbody>\n', ' <tr>\n', ' <td>k0</td>\n', ' <td>A0</td>\n', ' <td>B0</td>\n', ' </tr>\n', ' <tr>\n', ' <td>k1</td>\n', ' <td>A1</td>\n', ' <td>B1</td>\n', ' </tr>\n', ' <tr>\n', ' <td>k2</td>\n', ' <td>A2</td>\n', ' <td>B2</td>\n', ' </tr>\n', ' </tbody>\n', '</table>\n', '</div>'], 'text/plain': [' A B\n', 'k0 A0 B0\n', 'k1 A1 B1\n', 'k2 A2 B2']}, 'execution_count': 71, 'metadata': {}, 'output_type': 'execute_result'}], 'source': ['left']}, {'cell_type': 'code', 'execution_count': 72, 'metadata': {}, 'outputs': [{'data': {'text/html': ['<div>\n', '<style scoped>\n', ' .dataframe tbody tr th:only-of-type {\n', ' vertical-align: middle;\n', ' }\n', '\n', ' .dataframe tbody tr th {\n', ' vertical-align: top;\n', ' }\n', '\n', ' .dataframe thead th {\n', ' text-align: right;\n', ' }\n', '</style>\n', '<table border="1" class="dataframe">\n', ' <thead>\n', ' <tr style="text-align: right;">\n', ' <th></th>\n', ' <th>C</th>\n', ' <th>D</th>\n', ' </tr>\n', ' </thead>\n', ' <tbody>\n', ' <tr>\n', ' <td>k0</td>\n', ' <td>C0</td>\n', ' <td>D0</td>\n', ' </tr>\n', ' <tr>\n', ' <td>k2</td>\n', ' <td>C2</td>\n', ' <td>D2</td>\n', ' </tr>\n', ' <tr>\n', ' <td>k3</td>\n', ' <td>C3</td>\n', ' <td>D3</td>\n', ' </tr>\n', ' </tbody>\n', '</table>\n', '</div>'], 'text/plain': [' C D\n', 'k0 C0 D0\n', 'k2 C2 D2\n', 'k3 C3 D3']}, 'execution_count': 72, 'metadata': {}, 'output_type': 'execute_result'}], 'source': ['right']}, {'cell_type': 'code', 'execution_count': 76, 'metadata': {}, 'outputs': [{'data': {'text/html': ['<div>\n', '<style scoped>\n', ' .dataframe tbody tr th:only-of-type {\n', ' vertical-align: middle;\n', ' }\n', '\n', ' .dataframe tbody tr th {\n', ' vertical-align: top;\n', ' }\n', '\n', ' .dataframe thead th {\n', ' text-align: right;\n', ' }\n', '</style>\n', '<table border="1" class="dataframe">\n', ' <thead>\n', ' <tr style="text-align: right;">\n', ' <th></th>\n', ' <th>A</th>\n', ' <th>B</th>\n', ' <th>C</th>\n', ' <th>D</th>\n', ' </tr>\n', ' </thead>\n', ' <tbody>\n', ' <tr>\n', ' <td>k0</td>\n', ' <td>A0</td>\n', ' <td>B0</td>\n', ' <td>C0</td>\n', ' <td>D0</td>\n', ' </tr>\n', ' <tr>\n', ' <td>k2</td>\n', ' <td>A2</td>\n', ' <td>B2</td>\n', ' <td>C2</td>\n', ' <td>D2</td>\n', ' </tr>\n', ' </tbody>\n', '</table>\n', '</div>'], 'text/plain': [' A B C D\n', 'k0 A0 B0 C0 D0\n', 'k2 A2 B2 C2 D2']}, 'execution_count': 76, 'metadata': {}, 'output_type': 'execute_result'}], 'source': ["left.join(right, how = 'inner')"]}, {'cell_type': 'code', 'execution_count': 74, 'metadata': {}, 'outputs': [], 'source': ['left.join??']}, {'cell_type': 'markdown', 'metadata': {}, 'source': ['# Operations']}, {'cell_type': 'code', 'execution_count': 77, 'metadata': {}, 'outputs': [], 'source': ['df = pd.DataFrame({\n', " 'col1':[444,555,666,444],\n", " 'col2':[1,2,3,4],\n", " 'col3':['abc','def','ghi','xyz']\n", '})']}, {'cell_type': 'code', 'execution_count': 78, 'metadata': {}, 'outputs': [{'data': {'text/html': ['<div>\n', '<style scoped>\n', ' .dataframe tbody tr th:only-of-type {\n', ' vertical-align: middle;\n', ' }\n', '\n', ' .dataframe tbody tr th {\n', ' vertical-align: top;\n', ' }\n', '\n', ' .dataframe thead th {\n', ' text-align: right;\n', ' }\n', '</style>\n', '<table border="1" class="dataframe">\n', ' <thead>\n', ' <tr style="text-align: right;">\n', ' <th></th>\n', ' <th>col1</th>\n', ' <th>col2</th>\n', ' <th>col3</th>\n', ' </tr>\n', ' </thead>\n', ' <tbody>\n', ' <tr>\n', ' <td>0</td>\n', ' <td>444</td>\n', ' <td>1</td>\n', ' <td>abc</td>\n', ' </tr>\n', ' <tr>\n', ' <td>1</td>\n', ' <td>555</td>\n', ' <td>2</td>\n', ' <td>def</td>\n', ' </tr>\n', ' <tr>\n', ' <td>2</td>\n', ' <td>666</td>\n', ' <td>3</td>\n', ' <td>ghi</td>\n', ' </tr>\n', ' <tr>\n', ' <td>3</td>\n', ' <td>444</td>\n', ' <td>4</td>\n', ' <td>xyz</td>\n', ' </tr>\n', ' </tbody>\n', '</table>\n', '</div>'], 'text/plain': [' col1 col2 col3\n', '0 444 1 abc\n', '1 555 2 def\n', '2 666 3 ghi\n', '3 444 4 xyz']}, 'execution_count': 78, 'metadata': {}, 'output_type': 'execute_result'}], 'source': ['df']}, {'cell_type': 'code', 'execution_count': 79, 'metadata': {}, 'outputs': [{'data': {'text/plain': ['array([444, 555, 666], dtype=int64)']}, 'execution_count': 79, 'metadata': {}, 'output_type': 'execute_result'}], 'source': ["df['col1'].unique()"]}, {'cell_type': 'code', 'execution_count': 80, 'metadata': {}, 'outputs': [{'data': {'text/plain': ['3']}, 'execution_count': 80, 'metadata': {}, 'output_type': 'execute_result'}], 'source': ["df['col1'].nunique()"]}, {'cell_type': 'code', 'execution_count': 82, 'metadata': {}, 'outputs': [{'data': {'text/plain': ['444 2\n', '555 1\n', '666 1\n', 'Name: col1, dtype: int64']}, 'execution_count': 82, 'metadata': {}, 'output_type': 'execute_result'}], 'source': ["df['col1'].value_counts()"]}, {'cell_type': 'markdown', 'metadata': {}, 'source': ['## Apply Method']}, {'cell_type': 'code', 'execution_count': 84, 'metadata': {}, 'outputs': [], 'source': ['def times2(x):\n', ' return 2*x']}, {'cell_type': 'code', 'execution_count': 85, 'metadata': {}, 'outputs': [{'data': {'text/plain': ['0 2\n', '1 4\n', '2 6\n', '3 8\n', 'Name: col2, dtype: int64']}, 'execution_count': 85, 'metadata': {}, 'output_type': 'execute_result'}], 'source': ["df['col2'].apply(times2)"]}, {'cell_type': 'code', 'execution_count': 87, 'metadata': {}, 'outputs': [{'data': {'text/plain': ['0 1\n', '1 4\n', '2 9\n', '3 16\n', 'Name: col2, dtype: int64']}, 'execution_count': 87, 'metadata': {}, 'output_type': 'execute_result'}], 'source': ["df['col2'].apply(lambda x: x**2)"]}, {'cell_type': 'markdown', 'metadata': {}, 'source': ['# Reading File']}, {'cell_type': 'code', 'execution_count': 88, 'metadata': {}, 'outputs': [], 'source': ["df = pd.read_excel('SampleData.xlsx', sheet_name = 'SalesOrders')"]}, {'cell_type': 'code', 'execution_count': 89, 'metadata': {}, 'outputs': [{'data': {'text/html': ['<div>\n', '<style scoped>\n', ' .dataframe tbody tr th:only-of-type {\n', ' vertical-align: middle;\n', ' }\n', '\n', ' .dataframe tbody tr th {\n', ' vertical-align: top;\n', ' }\n', '\n', ' .dataframe thead th {\n', ' text-align: right;\n', ' }\n', '</style>\n', '<table border="1" class="dataframe">\n', ' <thead>\n', ' <tr style="text-align: right;">\n', ' <th></th>\n', ' <th>OrderDate</th>\n', ' <th>Region</th>\n', ' <th>Rep</th>\n', ' <th>Item</th>\n', ' <th>Units</th>\n', ' <th>Unit Cost</th>\n', ' <th>Total</th>\n', ' </tr>\n', ' </thead>\n', ' <tbody>\n', ' <tr>\n', ' <td>0</td>\n', ' <td>2019-01-06</td>\n', ' <td>East</td>\n', ' <td>Jones</td>\n', ' <td>Pencil</td>\n', ' <td>95</td>\n', ' <td>1.99</td>\n', ' <td>189.05</td>\n', ' </tr>\n', ' <tr>\n', ' <td>1</td>\n', ' <td>2019-01-23</td>\n', ' <td>Central</td>\n', ' <td>Kivell</td>\n', ' <td>Binder</td>\n', ' <td>50</td>\n', ' <td>19.99</td>\n', ' <td>999.50</td>\n', ' </tr>\n', ' <tr>\n', ' <td>2</td>\n', ' <td>2019-02-09</td>\n', ' <td>Central</td>\n', ' <td>Jardine</td>\n', ' <td>Pencil</td>\n', ' <td>36</td>\n', ' <td>4.99</td>\n', ' <td>179.64</td>\n', ' </tr>\n', ' <tr>\n', ' <td>3</td>\n', ' <td>2019-02-26</td>\n', ' <td>Central</td>\n', ' <td>Gill</td>\n', ' <td>Pen</td>\n', ' <td>27</td>\n', ' <td>19.99</td>\n', ' <td>539.73</td>\n', ' </tr>\n', ' <tr>\n', ' <td>4</td>\n', ' <td>2019-03-15</td>\n', ' <td>West</td>\n', ' <td>Sorvino</td>\n', ' <td>Pencil</td>\n', ' <td>56</td>\n', ' <td>2.99</td>\n', ' <td>167.44</td>\n', ' </tr>\n', ' <tr>\n', ' <td>5</td>\n', ' <td>2019-04-01</td>\n', ' <td>East</td>\n', ' <td>Jones</td>\n', ' <td>Binder</td>\n', ' <td>60</td>\n', ' <td>4.99</td>\n', ' <td>299.40</td>\n', ' </tr>\n', ' <tr>\n', ' <td>6</td>\n', ' <td>2019-04-18</td>\n', ' <td>Central</td>\n', ' <td>Andrews</td>\n', ' <td>Pencil</td>\n', ' <td>75</td>\n', ' <td>1.99</td>\n', ' <td>149.25</td>\n', ' </tr>\n', ' <tr>\n', ' <td>7</td>\n', ' <td>2019-05-05</td>\n', ' <td>Central</td>\n', ' <td>Jardine</td>\n', ' <td>Pencil</td>\n', ' <td>90</td>\n', ' <td>4.99</td>\n', ' <td>449.10</td>\n', ' </tr>\n', ' <tr>\n', ' <td>8</td>\n', ' <td>2019-05-22</td>\n', ' <td>West</td>\n', ' <td>Thompson</td>\n', ' <td>Pencil</td>\n', ' <td>32</td>\n', ' <td>1.99</td>\n', ' <td>63.68</td>\n', ' </tr>\n', ' <tr>\n', ' <td>9</td>\n', ' <td>2019-06-08</td>\n', ' <td>East</td>\n', ' <td>Jones</td>\n', ' <td>Binder</td>\n', ' <td>60</td>\n', ' <td>8.99</td>\n', ' <td>539.40</td>\n', ' </tr>\n', ' <tr>\n', ' <td>10</td>\n', ' <td>2019-06-25</td>\n', ' <td>Central</td>\n', ' <td>Morgan</td>\n', ' <td>Pencil</td>\n', ' <td>90</td>\n', ' <td>4.99</td>\n', ' <td>449.10</td>\n', ' </tr>\n', ' <tr>\n', ' <td>11</td>\n', ' <td>2019-07-12</td>\n', ' <td>East</td>\n', ' <td>Howard</td>\n', ' <td>Binder</td>\n', ' <td>29</td>\n', ' <td>1.99</td>\n', ' <td>57.71</td>\n', ' </tr>\n', ' <tr>\n', ' <td>12</td>\n', ' <td>2019-07-29</td>\n', ' <td>East</td>\n', ' <td>Parent</td>\n', ' <td>Binder</td>\n', ' <td>81</td>\n', ' <td>19.99</td>\n', ' <td>1619.19</td>\n', ' </tr>\n', ' <tr>\n', ' <td>13</td>\n', ' <td>2019-08-15</td>\n', ' <td>East</td>\n', ' <td>Jones</td>\n', ' <td>Pencil</td>\n', ' <td>35</td>\n', ' <td>4.99</td>\n', ' <td>174.65</td>\n', ' </tr>\n', ' <tr>\n', ' <td>14</td>\n', ' <td>2019-09-01</td>\n', ' <td>Central</td>\n', ' <td>Smith</td>\n', ' <td>Desk</td>\n', ' <td>2</td>\n', ' <td>125.00</td>\n', ' <td>250.00</td>\n', ' </tr>\n', ' <tr>\n', ' <td>15</td>\n', ' <td>2019-09-18</td>\n', ' <td>East</td>\n', ' <td>Jones</td>\n', ' <td>Pen Set</td>\n', ' <td>16</td>\n', ' <td>15.99</td>\n', ' <td>255.84</td>\n', ' </tr>\n', ' <tr>\n', ' <td>16</td>\n', ' <td>2019-10-05</td>\n', ' <td>Central</td>\n', ' <td>Morgan</td>\n', ' <td>Binder</td>\n', ' <td>28</td>\n', ' <td>8.99</td>\n', ' <td>251.72</td>\n', ' </tr>\n', ' <tr>\n', ' <td>17</td>\n', ' <td>2019-10-22</td>\n', ' <td>East</td>\n', ' <td>Jones</td>\n', ' <td>Pen</td>\n', ' <td>64</td>\n', ' <td>8.99</td>\n', ' <td>575.36</td>\n', ' </tr>\n', ' <tr>\n', ' <td>18</td>\n', ' <td>2019-11-08</td>\n', ' <td>East</td>\n', ' <td>Parent</td>\n', ' <td>Pen</td>\n', ' <td>15</td>\n', ' <td>19.99</td>\n', ' <td>299.85</td>\n', ' </tr>\n', ' <tr>\n', ' <td>19</td>\n', ' <td>2019-11-25</td>\n', ' <td>Central</td>\n', ' <td>Kivell</td>\n', ' <td>Pen Set</td>\n', ' <td>96</td>\n', ' <td>4.99</td>\n', ' <td>479.04</td>\n', ' </tr>\n', ' <tr>\n', ' <td>20</td>\n', ' <td>2019-12-12</td>\n', ' <td>Central</td>\n', ' <td>Smith</td>\n', ' <td>Pencil</td>\n', ' <td>67</td>\n', ' <td>1.29</td>\n', ' <td>86.43</td>\n', ' </tr>\n', ' <tr>\n', ' <td>21</td>\n', ' <td>2019-12-29</td>\n', ' <td>East</td>\n', ' <td>Parent</td>\n', ' <td>Pen Set</td>\n', ' <td>74</td>\n', ' <td>15.99</td>\n', ' <td>1183.26</td>\n', ' </tr>\n', ' <tr>\n', ' <td>22</td>\n', ' <td>2020-01-15</td>\n', ' <td>Central</td>\n', ' <td>Gill</td>\n', ' <td>Binder</td>\n', ' <td>46</td>\n', ' <td>8.99</td>\n', ' <td>413.54</td>\n', ' </tr>\n', ' <tr>\n', ' <td>23</td>\n', ' <td>2020-02-01</td>\n', ' <td>Central</td>\n', ' <td>Smith</td>\n', ' <td>Binder</td>\n', ' <td>87</td>\n', ' <td>15.00</td>\n', ' <td>1305.00</td>\n', ' </tr>\n', ' <tr>\n', ' <td>24</td>\n', ' <td>2020-02-18</td>\n', ' <td>East</td>\n', ' <td>Jones</td>\n', ' <td>Binder</td>\n', ' <td>4</td>\n', ' <td>4.99</td>\n', ' <td>19.96</td>\n', ' </tr>\n', ' <tr>\n', ' <td>25</td>\n', ' <td>2020-03-07</td>\n', ' <td>West</td>\n', ' <td>Sorvino</td>\n', ' <td>Binder</td>\n', ' <td>7</td>\n', ' <td>19.99</td>\n', ' <td>139.93</td>\n', ' </tr>\n', ' <tr>\n', ' <td>26</td>\n', ' <td>2020-03-24</td>\n', ' <td>Central</td>\n', ' <td>Jardine</td>\n', ' <td>Pen Set</td>\n', ' <td>50</td>\n', ' <td>4.99</td>\n', ' <td>249.50</td>\n', ' </tr>\n', ' <tr>\n', ' <td>27</td>\n', ' <td>2020-04-10</td>\n', ' <td>Central</td>\n', ' <td>Andrews</td>\n', ' <td>Pencil</td>\n', ' <td>66</td>\n', ' <td>1.99</td>\n', ' <td>131.34</td>\n', ' </tr>\n', ' <tr>\n', ' <td>28</td>\n', ' <td>2020-04-27</td>\n', ' <td>East</td>\n', ' <td>Howard</td>\n', ' <td>Pen</td>\n', ' <td>96</td>\n', ' <td>4.99</td>\n', ' <td>479.04</td>\n', ' </tr>\n', ' <tr>\n', ' <td>29</td>\n', ' <td>2020-05-14</td>\n', ' <td>Central</td>\n', ' <td>Gill</td>\n', ' <td>Pencil</td>\n', ' <td>53</td>\n', ' <td>1.29</td>\n', ' <td>68.37</td>\n', ' </tr>\n', ' <tr>\n', ' <td>30</td>\n', ' <td>2020-05-31</td>\n', ' <td>Central</td>\n', ' <td>Gill</td>\n', ' <td>Binder</td>\n', ' <td>80</td>\n', ' <td>8.99</td>\n', ' <td>719.20</td>\n', ' </tr>\n', ' <tr>\n', ' <td>31</td>\n', ' <td>2020-06-17</td>\n', ' <td>Central</td>\n', ' <td>Kivell</td>\n', ' <td>Desk</td>\n', ' <td>5</td>\n', ' <td>125.00</td>\n', ' <td>625.00</td>\n', ' </tr>\n', ' <tr>\n', ' <td>32</td>\n', ' <td>2020-07-04</td>\n', ' <td>East</td>\n', ' <td>Jones</td>\n', ' <td>Pen Set</td>\n', ' <td>62</td>\n', ' <td>4.99</td>\n', ' <td>309.38</td>\n', ' </tr>\n', ' <tr>\n', ' <td>33</td>\n', ' <td>2020-07-21</td>\n', ' <td>Central</td>\n', ' <td>Morgan</td>\n', ' <td>Pen Set</td>\n', ' <td>55</td>\n', ' <td>12.49</td>\n', ' <td>686.95</td>\n', ' </tr>\n', ' <tr>\n', ' <td>34</td>\n', ' <td>2020-08-07</td>\n', ' <td>Central</td>\n', ' <td>Kivell</td>\n', ' <td>Pen Set</td>\n', ' <td>42</td>\n', ' <td>23.95</td>\n', ' <td>1005.90</td>\n', ' </tr>\n', ' <tr>\n', ' <td>35</td>\n', ' <td>2020-08-24</td>\n', ' <td>West</td>\n', ' <td>Sorvino</td>\n', ' <td>Desk</td>\n', ' <td>3</td>\n', ' <td>275.00</td>\n', ' <td>825.00</td>\n', ' </tr>\n', ' <tr>\n', ' <td>36</td>\n', ' <td>2020-09-10</td>\n', ' <td>Central</td>\n', ' <td>Gill</td>\n', ' <td>Pencil</td>\n', ' <td>7</td>\n', ' <td>1.29</td>\n', ' <td>9.03</td>\n', ' </tr>\n', ' <tr>\n', ' <td>37</td>\n', ' <td>2020-09-27</td>\n', ' <td>West</td>\n', ' <td>Sorvino</td>\n', ' <td>Pen</td>\n', ' <td>76</td>\n', ' <td>1.99</td>\n', ' <td>151.24</td>\n', ' </tr>\n', ' <tr>\n', ' <td>38</td>\n', ' <td>2020-10-14</td>\n', ' <td>West</td>\n', ' <td>Thompson</td>\n', ' <td>Binder</td>\n', ' <td>57</td>\n', ' <td>19.99</td>\n', ' <td>1139.43</td>\n', ' </tr>\n', ' <tr>\n', ' <td>39</td>\n', ' <td>2020-10-31</td>\n', ' <td>Central</td>\n', ' <td>Andrews</td>\n', ' <td>Pencil</td>\n', ' <td>14</td>\n', ' <td>1.29</td>\n', ' <td>18.06</td>\n', ' </tr>\n', ' <tr>\n', ' <td>40</td>\n', ' <td>2020-11-17</td>\n', ' <td>Central</td>\n', ' <td>Jardine</td>\n', ' <td>Binder</td>\n', ' <td>11</td>\n', ' <td>4.99</td>\n', ' <td>54.89</td>\n', ' </tr>\n', ' <tr>\n', ' <td>41</td>\n', ' <td>2020-12-04</td>\n', ' <td>Central</td>\n', ' <td>Jardine</td>\n', ' <td>Binder</td>\n', ' <td>94</td>\n', ' <td>19.99</td>\n', ' <td>1879.06</td>\n', ' </tr>\n', ' <tr>\n', ' <td>42</td>\n', ' <td>2020-12-21</td>\n', ' <td>Central</td>\n', ' <td>Andrews</td>\n', ' <td>Binder</td>\n', ' <td>28</td>\n', ' <td>4.99</td>\n', ' <td>139.72</td>\n', ' </tr>\n', ' </tbody>\n', '</table>\n', '</div>'], 'text/plain': [' OrderDate Region Rep Item Units Unit Cost Total\n', '0 2019-01-06 East Jones Pencil 95 1.99 189.05\n', '1 2019-01-23 Central Kivell Binder 50 19.99 999.50\n', '2 2019-02-09 Central Jardine Pencil 36 4.99 179.64\n', '3 2019-02-26 Central Gill Pen 27 19.99 539.73\n', '4 2019-03-15 West Sorvino Pencil 56 2.99 167.44\n', '5 2019-04-01 East Jones Binder 60 4.99 299.40\n', '6 2019-04-18 Central Andrews Pencil 75 1.99 149.25\n', '7 2019-05-05 Central Jardine Pencil 90 4.99 449.10\n', '8 2019-05-22 West Thompson Pencil 32 1.99 63.68\n', '9 2019-06-08 East Jones Binder 60 8.99 539.40\n', '10 2019-06-25 Central Morgan Pencil 90 4.99 449.10\n', '11 2019-07-12 East Howard Binder 29 1.99 57.71\n', '12 2019-07-29 East Parent Binder 81 19.99 1619.19\n', '13 2019-08-15 East Jones Pencil 35 4.99 174.65\n', '14 2019-09-01 Central Smith Desk 2 125.00 250.00\n', '15 2019-09-18 East Jones Pen Set 16 15.99 255.84\n', '16 2019-10-05 Central Morgan Binder 28 8.99 251.72\n', '17 2019-10-22 East Jones Pen 64 8.99 575.36\n', '18 2019-11-08 East Parent Pen 15 19.99 299.85\n', '19 2019-11-25 Central Kivell Pen Set 96 4.99 479.04\n', '20 2019-12-12 Central Smith Pencil 67 1.29 86.43\n', '21 2019-12-29 East Parent Pen Set 74 15.99 1183.26\n', '22 2020-01-15 Central Gill Binder 46 8.99 413.54\n', '23 2020-02-01 Central Smith Binder 87 15.00 1305.00\n', '24 2020-02-18 East Jones Binder 4 4.99 19.96\n', '25 2020-03-07 West Sorvino Binder 7 19.99 139.93\n', '26 2020-03-24 Central Jardine Pen Set 50 4.99 249.50\n', '27 2020-04-10 Central Andrews Pencil 66 1.99 131.34\n', '28 2020-04-27 East Howard Pen 96 4.99 479.04\n', '29 2020-05-14 Central Gill Pencil 53 1.29 68.37\n', '30 2020-05-31 Central Gill Binder 80 8.99 719.20\n', '31 2020-06-17 Central Kivell Desk 5 125.00 625.00\n', '32 2020-07-04 East Jones Pen Set 62 4.99 309.38\n', '33 2020-07-21 Central Morgan Pen Set 55 12.49 686.95\n', '34 2020-08-07 Central Kivell Pen Set 42 23.95 1005.90\n', '35 2020-08-24 West Sorvino Desk 3 275.00 825.00\n', '36 2020-09-10 Central Gill Pencil 7 1.29 9.03\n', '37 2020-09-27 West Sorvino Pen 76 1.99 151.24\n', '38 2020-10-14 West Thompson Binder 57 19.99 1139.43\n', '39 2020-10-31 Central Andrews Pencil 14 1.29 18.06\n', '40 2020-11-17 Central Jardine Binder 11 4.99 54.89\n', '41 2020-12-04 Central Jardine Binder 94 19.99 1879.06\n', '42 2020-12-21 Central Andrews Binder 28 4.99 139.72']}, 'execution_count': 89, 'metadata': {}, 'output_type': 'execute_result'}], 'source': ['df']}, {'cell_type': 'code', 'execution_count': 91, 'metadata': {}, 'outputs': [{'data': {'text/html': ['<div>\n', '<style scoped>\n', ' .dataframe tbody tr th:only-of-type {\n', ' vertical-align: middle;\n', ' }\n', '\n', ' .dataframe tbody tr th {\n', ' vertical-align: top;\n', ' }\n', '\n', ' .dataframe thead th {\n', ' text-align: right;\n', ' }\n', '</style>\n', '<table border="1" class="dataframe">\n', ' <thead>\n', ' <tr style="text-align: right;">\n', ' <th></th>\n', ' <th>OrderDate</th>\n', ' <th>Region</th>\n', ' <th>Rep</th>\n', ' <th>Item</th>\n', ' <th>Units</th>\n', ' <th>Unit Cost</th>\n', ' <th>Total</th>\n', ' </tr>\n', ' </thead>\n', ' <tbody>\n', ' <tr>\n', ' <td>0</td>\n', ' <td>2019-01-06</td>\n', ' <td>East</td>\n', ' <td>Jones</td>\n', ' <td>Pencil</td>\n', ' <td>95</td>\n', ' <td>1.99</td>\n', ' <td>189.05</td>\n', ' </tr>\n', ' <tr>\n', ' <td>1</td>\n', ' <td>2019-01-23</td>\n', ' <td>Central</td>\n', ' <td>Kivell</td>\n', ' <td>Binder</td>\n', ' <td>50</td>\n', ' <td>19.99</td>\n', ' <td>999.50</td>\n', ' </tr>\n', ' <tr>\n', ' <td>2</td>\n', ' <td>2019-02-09</td>\n', ' <td>Central</td>\n', ' <td>Jardine</td>\n', ' <td>Pencil</td>\n', ' <td>36</td>\n', ' <td>4.99</td>\n', ' <td>179.64</td>\n', ' </tr>\n', ' <tr>\n', ' <td>3</td>\n', ' <td>2019-02-26</td>\n', ' <td>Central</td>\n', ' <td>Gill</td>\n', ' <td>Pen</td>\n', ' <td>27</td>\n', ' <td>19.99</td>\n', ' <td>539.73</td>\n', ' </tr>\n', ' <tr>\n', ' <td>4</td>\n', ' <td>2019-03-15</td>\n', ' <td>West</td>\n', ' <td>Sorvino</td>\n', ' <td>Pencil</td>\n', ' <td>56</td>\n', ' <td>2.99</td>\n', ' <td>167.44</td>\n', ' </tr>\n', ' <tr>\n', ' <td>5</td>\n', ' <td>2019-04-01</td>\n', ' <td>East</td>\n', ' <td>Jones</td>\n', ' <td>Binder</td>\n', ' <td>60</td>\n', ' <td>4.99</td>\n', ' <td>299.40</td>\n', ' </tr>\n', ' <tr>\n', ' <td>6</td>\n', ' <td>2019-04-18</td>\n', ' <td>Central</td>\n', ' <td>Andrews</td>\n', ' <td>Pencil</td>\n', ' <td>75</td>\n', ' <td>1.99</td>\n', ' <td>149.25</td>\n', ' </tr>\n', ' <tr>\n', ' <td>7</td>\n', ' <td>2019-05-05</td>\n', ' <td>Central</td>\n', ' <td>Jardine</td>\n', ' <td>Pencil</td>\n', ' <td>90</td>\n', ' <td>4.99</td>\n', ' <td>449.10</td>\n', ' </tr>\n', ' <tr>\n', ' <td>8</td>\n', ' <td>2019-05-22</td>\n', ' <td>West</td>\n', ' <td>Thompson</td>\n', ' <td>Pencil</td>\n', ' <td>32</td>\n', ' <td>1.99</td>\n', ' <td>63.68</td>\n', ' </tr>\n', ' <tr>\n', ' <td>9</td>\n', ' <td>2019-06-08</td>\n', ' <td>East</td>\n', ' <td>Jones</td>\n', ' <td>Binder</td>\n', ' <td>60</td>\n', ' <td>8.99</td>\n', ' <td>539.40</td>\n', ' </tr>\n', ' </tbody>\n', '</table>\n', '</div>'], 'text/plain': [' OrderDate Region Rep Item Units Unit Cost Total\n', '0 2019-01-06 East Jones Pencil 95 1.99 189.05\n', '1 2019-01-23 Central Kivell Binder 50 19.99 999.50\n', '2 2019-02-09 Central Jardine Pencil 36 4.99 179.64\n', '3 2019-02-26 Central Gill Pen 27 19.99 539.73\n', '4 2019-03-15 West Sorvino Pencil 56 2.99 167.44\n', '5 2019-04-01 East Jones Binder 60 4.99 299.40\n', '6 2019-04-18 Central Andrews Pencil 75 1.99 149.25\n', '7 2019-05-05 Central Jardine Pencil 90 4.99 449.10\n', '8 2019-05-22 West Thompson Pencil 32 1.99 63.68\n', '9 2019-06-08 East Jones Binder 60 8.99 539.40']}, 'execution_count': 91, 'metadata': {}, 'output_type': 'execute_result'}], 'source': ['df.head(10)']}, {'cell_type': 'code', 'execution_count': 92, 'metadata': {}, 'outputs': [{'data': {'text/html': ['<div>\n', '<style scoped>\n', ' .dataframe tbody tr th:only-of-type {\n', ' vertical-align: middle;\n', ' }\n', '\n', ' .dataframe tbody tr th {\n', ' vertical-align: top;\n', ' }\n', '\n', ' .dataframe thead th {\n', ' text-align: right;\n', ' }\n', '</style>\n', '<table border="1" class="dataframe">\n', ' <thead>\n', ' <tr style="text-align: right;">\n', ' <th></th>\n', ' <th>OrderDate</th>\n', ' <th>Region</th>\n', ' <th>Rep</th>\n', ' <th>Item</th>\n', ' <th>Units</th>\n', ' <th>Unit Cost</th>\n', ' <th>Total</th>\n', ' </tr>\n', ' </thead>\n', ' <tbody>\n', ' <tr>\n', ' <td>38</td>\n', ' <td>2020-10-14</td>\n', ' <td>West</td>\n', ' <td>Thompson</td>\n', ' <td>Binder</td>\n', ' <td>57</td>\n', ' <td>19.99</td>\n', ' <td>1139.43</td>\n', ' </tr>\n', ' <tr>\n', ' <td>39</td>\n', ' <td>2020-10-31</td>\n', ' <td>Central</td>\n', ' <td>Andrews</td>\n', ' <td>Pencil</td>\n', ' <td>14</td>\n', ' <td>1.29</td>\n', ' <td>18.06</td>\n', ' </tr>\n', ' <tr>\n', ' <td>40</td>\n', ' <td>2020-11-17</td>\n', ' <td>Central</td>\n', ' <td>Jardine</td>\n', ' <td>Binder</td>\n', ' <td>11</td>\n', ' <td>4.99</td>\n', ' <td>54.89</td>\n', ' </tr>\n', ' <tr>\n', ' <td>41</td>\n', ' <td>2020-12-04</td>\n', ' <td>Central</td>\n', ' <td>Jardine</td>\n', ' <td>Binder</td>\n', ' <td>94</td>\n', ' <td>19.99</td>\n', ' <td>1879.06</td>\n', ' </tr>\n', ' <tr>\n', ' <td>42</td>\n', ' <td>2020-12-21</td>\n', ' <td>Central</td>\n', ' <td>Andrews</td>\n', ' <td>Binder</td>\n', ' <td>28</td>\n', ' <td>4.99</td>\n', ' <td>139.72</td>\n', ' </tr>\n', ' </tbody>\n', '</table>\n', '</div>'], 'text/plain': [' OrderDate Region Rep Item Units Unit Cost Total\n', '38 2020-10-14 West Thompson Binder 57 19.99 1139.43\n', '39 2020-10-31 Central Andrews Pencil 14 1.29 18.06\n', '40 2020-11-17 Central Jardine Binder 11 4.99 54.89\n', '41 2020-12-04 Central Jardine Binder 94 19.99 1879.06\n', '42 2020-12-21 Central Andrews Binder 28 4.99 139.72']}, 'execution_count': 92, 'metadata': {}, 'output_type': 'execute_result'}], 'source': ['df.tail()']}, {'cell_type': 'code', 'execution_count': 93, 'metadata': {}, 'outputs': [{'data': {'text/plain': ["Index(['OrderDate', 'Region', 'Rep', 'Item', 'Units', 'Unit Cost', 'Total'], dtype='object')"]}, 'execution_count': 93, 'metadata': {}, 'output_type': 'execute_result'}], 'source': ['df.columns']}, {'cell_type': 'code', 'execution_count': 94, 'metadata': {}, 'outputs': [{'data': {'text/plain': ["['OrderDate', 'Region', 'Rep', 'Item', 'Units', 'Unit Cost', 'Total']"]}, 'execution_count': 94, 'metadata': {}, 'output_type': 'execute_result'}], 'source': ['df.columns.to_list()']}, {'cell_type': 'code', 'execution_count': 95, 'metadata': {}, 'outputs': [{'name': 'stdout', 'output_type': 'stream', 'text': ["<class 'pandas.core.frame.DataFrame'>\n", 'RangeIndex: 43 entries, 0 to 42\n', 'Data columns (total 7 columns):\n', 'OrderDate 43 non-null datetime64[ns]\n', 'Region 43 non-null object\n', 'Rep 43 non-null object\n', 'Item 43 non-null object\n', 'Units 43 non-null int64\n', 'Unit Cost 43 non-null float64\n', 'Total 43 non-null float64\n', 'dtypes: datetime64[ns](1), float64(2), int64(1), object(3)\n', 'memory usage: 2.5+ KB\n']}], 'source': ['df.info()']}, {'cell_type': 'code', 'execution_count': 97, 'metadata': {}, 'outputs': [{'data': {'text/plain': ['OrderDate 43\n', 'Region 3\n', 'Rep 11\n', 'Item 5\n', 'Units 37\n', 'Unit Cost 12\n', 'Total 41\n', 'dtype: int64']}, 'execution_count': 97, 'metadata': {}, 'output_type': 'execute_result'}], 'source': ['df.nunique()']}, {'cell_type': 'code', 'execution_count': 98, 'metadata': {}, 'outputs': [{'data': {'text/html': ['<div>\n', '<style scoped>\n', ' .dataframe tbody tr th:only-of-type {\n', ' vertical-align: middle;\n', ' }\n', '\n', ' .dataframe tbody tr th {\n', ' vertical-align: top;\n', ' }\n', '\n', ' .dataframe thead th {\n', ' text-align: right;\n', ' }\n', '</style>\n', '<table border="1" class="dataframe">\n', ' <thead>\n', ' <tr style="text-align: right;">\n', ' <th></th>\n', ' <th>OrderDate</th>\n', ' <th>Region</th>\n', ' <th>Rep</th>\n', ' <th>Item</th>\n', ' <th>Units</th>\n', ' <th>Unit Cost</th>\n', ' <th>Total</th>\n', ' </tr>\n', ' </thead>\n', ' <tbody>\n', ' <tr>\n', ' <td>0</td>\n', ' <td>2019-01-06</td>\n', ' <td>East</td>\n', ' <td>Jones</td>\n', ' <td>Pencil</td>\n', ' <td>95</td>\n', ' <td>1.99</td>\n', ' <td>189.05</td>\n', ' </tr>\n', ' <tr>\n', ' <td>1</td>\n', ' <td>2019-01-23</td>\n', ' <td>Central</td>\n', ' <td>Kivell</td>\n', ' <td>Binder</td>\n', ' <td>50</td>\n', ' <td>19.99</td>\n', ' <td>999.50</td>\n', ' </tr>\n', ' <tr>\n', ' <td>2</td>\n', ' <td>2019-02-09</td>\n', ' <td>Central</td>\n', ' <td>Jardine</td>\n', ' <td>Pencil</td>\n', ' <td>36</td>\n', ' <td>4.99</td>\n', ' <td>179.64</td>\n', ' </tr>\n', ' <tr>\n', ' <td>3</td>\n', ' <td>2019-02-26</td>\n', ' <td>Central</td>\n', ' <td>Gill</td>\n', ' <td>Pen</td>\n', ' <td>27</td>\n', ' <td>19.99</td>\n', ' <td>539.73</td>\n', ' </tr>\n', ' <tr>\n', ' <td>4</td>\n', ' <td>2019-03-15</td>\n', ' <td>West</td>\n', ' <td>Sorvino</td>\n', ' <td>Pencil</td>\n', ' <td>56</td>\n', ' <td>2.99</td>\n', ' <td>167.44</td>\n', ' </tr>\n', ' </tbody>\n', '</table>\n', '</div>'], 'text/plain': [' OrderDate Region Rep Item Units Unit Cost Total\n', '0 2019-01-06 East Jones Pencil 95 1.99 189.05\n', '1 2019-01-23 Central Kivell Binder 50 19.99 999.50\n', '2 2019-02-09 Central Jardine Pencil 36 4.99 179.64\n', '3 2019-02-26 Central Gill Pen 27 19.99 539.73\n', '4 2019-03-15 West Sorvino Pencil 56 2.99 167.44']}, 'execution_count': 98, 'metadata': {}, 'output_type': 'execute_result'}], 'source': ['df.head()']}, {'cell_type': 'code', 'execution_count': 99, 'metadata': {}, 'outputs': [], 'source': ["df['20% Dis'] = df['Total'].apply(lambda x: x*(20/100))"]}, {'cell_type': 'code', 'execution_count': 100, 'metadata': {}, 'outputs': [{'data': {'text/html': ['<div>\n', '<style scoped>\n', ' .dataframe tbody tr th:only-of-type {\n', ' vertical-align: middle;\n', ' }\n', '\n', ' .dataframe tbody tr th {\n', ' vertical-align: top;\n', ' }\n', '\n', ' .dataframe thead th {\n', ' text-align: right;\n', ' }\n', '</style>\n', '<table border="1" class="dataframe">\n', ' <thead>\n', ' <tr style="text-align: right;">\n', ' <th></th>\n', ' <th>OrderDate</th>\n', ' <th>Region</th>\n', ' <th>Rep</th>\n', ' <th>Item</th>\n', ' <th>Units</th>\n', ' <th>Unit Cost</th>\n', ' <th>Total</th>\n', ' <th>20% Dis</th>\n', ' </tr>\n', ' </thead>\n', ' <tbody>\n', ' <tr>\n', ' <td>0</td>\n', ' <td>2019-01-06</td>\n', ' <td>East</td>\n', ' <td>Jones</td>\n', ' <td>Pencil</td>\n', ' <td>95</td>\n', ' <td>1.99</td>\n', ' <td>189.05</td>\n', ' <td>37.810</td>\n', ' </tr>\n', ' <tr>\n', ' <td>1</td>\n', ' <td>2019-01-23</td>\n', ' <td>Central</td>\n', ' <td>Kivell</td>\n', ' <td>Binder</td>\n', ' <td>50</td>\n', ' <td>19.99</td>\n', ' <td>999.50</td>\n', ' <td>199.900</td>\n', ' </tr>\n', ' <tr>\n', ' <td>2</td>\n', ' <td>2019-02-09</td>\n', ' <td>Central</td>\n', ' <td>Jardine</td>\n', ' <td>Pencil</td>\n', ' <td>36</td>\n', ' <td>4.99</td>\n', ' <td>179.64</td>\n', ' <td>35.928</td>\n', ' </tr>\n', ' <tr>\n', ' <td>3</td>\n', ' <td>2019-02-26</td>\n', ' <td>Central</td>\n', ' <td>Gill</td>\n', ' <td>Pen</td>\n', ' <td>27</td>\n', ' <td>19.99</td>\n', ' <td>539.73</td>\n', ' <td>107.946</td>\n', ' </tr>\n', ' <tr>\n', ' <td>4</td>\n', ' <td>2019-03-15</td>\n', ' <td>West</td>\n', ' <td>Sorvino</td>\n', ' <td>Pencil</td>\n', ' <td>56</td>\n', ' <td>2.99</td>\n', ' <td>167.44</td>\n', ' <td>33.488</td>\n', ' </tr>\n', ' </tbody>\n', '</table>\n', '</div>'], 'text/plain': [' OrderDate Region Rep Item Units Unit Cost Total 20% Dis\n', '0 2019-01-06 East Jones Pencil 95 1.99 189.05 37.810\n', '1 2019-01-23 Central Kivell Binder 50 19.99 999.50 199.900\n', '2 2019-02-09 Central Jardine Pencil 36 4.99 179.64 35.928\n', '3 2019-02-26 Central Gill Pen 27 19.99 539.73 107.946\n', '4 2019-03-15 West Sorvino Pencil 56 2.99 167.44 33.488']}, 'execution_count': 100, 'metadata': {}, 'output_type': 'execute_result'}], 'source': ['df.head()']}, {'cell_type': 'code', 'execution_count': 101, 'metadata': {}, 'outputs': [], 'source': ["df['Payment'] = df['Total'] - df['20% Dis']"]}, {'cell_type': 'code', 'execution_count': 102, 'metadata': {}, 'outputs': [{'data': {'text/html': ['<div>\n', '<style scoped>\n', ' .dataframe tbody tr th:only-of-type {\n', ' vertical-align: middle;\n', ' }\n', '\n', ' .dataframe tbody tr th {\n', ' vertical-align: top;\n', ' }\n', '\n', ' .dataframe thead th {\n', ' text-align: right;\n', ' }\n', '</style>\n', '<table border="1" class="dataframe">\n', ' <thead>\n', ' <tr style="text-align: right;">\n', ' <th></th>\n', ' <th>OrderDate</th>\n', ' <th>Region</th>\n', ' <th>Rep</th>\n', ' <th>Item</th>\n', ' <th>Units</th>\n', ' <th>Unit Cost</th>\n', ' <th>Total</th>\n', ' <th>20% Dis</th>\n', ' <th>Payment</th>\n', ' </tr>\n', ' </thead>\n', ' <tbody>\n', ' <tr>\n', ' <td>0</td>\n', ' <td>2019-01-06</td>\n', ' <td>East</td>\n', ' <td>Jones</td>\n', ' <td>Pencil</td>\n', ' <td>95</td>\n', ' <td>1.99</td>\n', ' <td>189.05</td>\n', ' <td>37.810</td>\n', ' <td>151.240</td>\n', ' </tr>\n', ' <tr>\n', ' <td>1</td>\n', ' <td>2019-01-23</td>\n', ' <td>Central</td>\n', ' <td>Kivell</td>\n', ' <td>Binder</td>\n', ' <td>50</td>\n', ' <td>19.99</td>\n', ' <td>999.50</td>\n', ' <td>199.900</td>\n', ' <td>799.600</td>\n', ' </tr>\n', ' <tr>\n', ' <td>2</td>\n', ' <td>2019-02-09</td>\n', ' <td>Central</td>\n', ' <td>Jardine</td>\n', ' <td>Pencil</td>\n', ' <td>36</td>\n', ' <td>4.99</td>\n', ' <td>179.64</td>\n', ' <td>35.928</td>\n', ' <td>143.712</td>\n', ' </tr>\n', ' <tr>\n', ' <td>3</td>\n', ' <td>2019-02-26</td>\n', ' <td>Central</td>\n', ' <td>Gill</td>\n', ' <td>Pen</td>\n', ' <td>27</td>\n', ' <td>19.99</td>\n', ' <td>539.73</td>\n', ' <td>107.946</td>\n', ' <td>431.784</td>\n', ' </tr>\n', ' <tr>\n', ' <td>4</td>\n', ' <td>2019-03-15</td>\n', ' <td>West</td>\n', ' <td>Sorvino</td>\n', ' <td>Pencil</td>\n', ' <td>56</td>\n', ' <td>2.99</td>\n', ' <td>167.44</td>\n', ' <td>33.488</td>\n', ' <td>133.952</td>\n', ' </tr>\n', ' </tbody>\n', '</table>\n', '</div>'], 'text/plain': [' OrderDate Region Rep Item Units Unit Cost Total 20% Dis \\\n', '0 2019-01-06 East Jones Pencil 95 1.99 189.05 37.810 \n', '1 2019-01-23 Central Kivell Binder 50 19.99 999.50 199.900 \n', '2 2019-02-09 Central Jardine Pencil 36 4.99 179.64 35.928 \n', '3 2019-02-26 Central Gill Pen 27 19.99 539.73 107.946 \n', '4 2019-03-15 West Sorvino Pencil 56 2.99 167.44 33.488 \n', '\n', ' Payment \n', '0 151.240 \n', '1 799.600 \n', '2 143.712 \n', '3 431.784 \n', '4 133.952 ']}, 'execution_count': 102, 'metadata': {}, 'output_type': 'execute_result'}], 'source': ['df.head()']}, {'cell_type': 'code', 'execution_count': 103, 'metadata': {}, 'outputs': [], 'source': ['import matplotlib.pyplot as plt']}, {'cell_type': 'code', 'execution_count': 105, 'metadata': {}, 'outputs': [{'data': {'image/png': 'iVBORw0KGgoAAAANSUhEUgAAAswAAAFlCAYAAAD/Kr6hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4xLjEsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy8QZhcZAAAgAElEQVR4nOzdaZRb53kn+P+LfasCamcVKZKiREpeJMsStdiyLCpuO467p53MmelInsR2YltJx/kwyXyY5PTp4z49x3N6ZronHXc6TkuJ4qTjJVs78XScxY5FOY65iFosS7JIcRXJ2oEqrIV7cYF3Ptz7olA7gHsvgAv8f+fwkESBxUupCnjw4P8+j5BSgoiIiIiItufr9gUQEREREfUyFsxERERERLtgwUxEREREtAsWzEREREREu2DBTERERES0CxbMRERERES7CHT7AvYyPj4uDx8+3O3LICIiIqI+9sILLyxLKSe2+1jPF8yHDx/GuXPnun0ZRERERNTHhBDXdvoYIxlERERERLtgwUxEREREtAsWzEREREREu2DBTERERES0CxbMRERERES7YMFMRERERLQLFsxERERERLtgwUxEREREtAsWzEREREREu2DBTERERES0CxbMRERERES7YMFMRERERI4pV6p4K13q9mU4igUzERERETnmy2fewod/87uoVGvdvhTHsGAmIiIiIscs5Moo6VUUNaPbl+IYFsxERERE5BhVKOfLLJiJiIiIiLZQBXNRZ8FMRERERLRFQauaP7PDTERERES0leowF5hhJiIiIiLaSkUxilanuR+wYCYiIiIix6x3mCtdvhLnsGAmIiIiIseoznKBHWYiIiIioq3qHWYe+iMiIiIi2khKuZ5h5lg5IiIiIqKN1ipV1KT5ay4uISIiIiLapHGU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IYDv5npdlLh2cY+/FOcO/f0RZw/93Z3r9ZF63eL+LulnLJX1RRp1W84XMIuFfw+41vpBAAf4n+vAaXpeB3CC/6+Df3wluLMNF4BJ/ncLf99bAI7wi3lFkm1eB26qsxvAN+Nu/wL/fGFwZy+/zvX6KHm9Zj1G6V/Eilo3AG8AuCbX66LQdfs9gCFwg4MDAD7B355wm0r9yWDtfg1gIu6x+1J5L83a5sfBfTF1AfjnuNsf5Ncyyv/3O7leH6WvWdz99VB2wayoNQNX2DTlel0UvHZvARgF4OM/i1fztzcC2MOv6R8B6HO9PjKtW8LjfYJtila3saQ/BoPBYDAYDAYjCXmtYWYwGAwGg8FgMKSGFcwMBoPBYDAYDEYSWMHMYDAYDAaDwWAkgRXMDAaDwWAwGAxGEljBzGAwGAwGg8FgJIEVzAwGg8FgMBgMRhJYwcxgMBgMBoPBYCSBFcwMBoPBYDAYDEYS/j9oiRTf+v76+QAAAABJRU5ErkJggg==\n', 'text/plain': ['<Figure size 864x432 with 1 Axes>']}, 'metadata': {'needs_background': 'light'}, 'output_type': 'display_data'}], 'source': ['plt.figure(figsize = (12,6))\n', "plt.plot(df['OrderDate'], df['Total'])\n", 'plt.show()']}], 'metadata': {'kernelspec': {'display_name': 'Python 3', 'language': 'python', 'name': 'python3'}, 'language_info': {'codemirror_mode': {'name': 'ipython', 'version': 3}, 'file_extension': '.py', 'mimetype': 'text/x-python', 'name': 'python', 'nbconvert_exporter': 'python', 'pygments_lexer': 'ipython3', 'version': '3.7.4'}}, 'nbformat': 4, 'nbformat_minor': 2}
#!/usr/bin/env python class CrossReference(object): def __init__(self, db): self.db = db def check(self, tweet): pass
class Crossreference(object): def __init__(self, db): self.db = db def check(self, tweet): pass
def check_target(ast): pass def check_iterator(ast): pass def check_lambda(ast): pass
def check_target(ast): pass def check_iterator(ast): pass def check_lambda(ast): pass
fac_no_faction = 0 fac_commoners = 1 fac_outlaws = 2 fac_neutral = 3 fac_innocents = 4 fac_merchants = 5 fac_dark_knights = 6 fac_culture_1 = 7 fac_culture_2 = 8 fac_culture_3 = 9 fac_culture_4 = 10 fac_culture_5 = 11 fac_culture_6 = 12 fac_culture_7 = 13 fac_culture_8 = 14 fac_culture_9 = 15 fac_culture_10 = 16 fac_culture_11 = 17 fac_culture_12 = 18 fac_culture_13 = 19 fac_culture_14 = 20 fac_culture_15 = 21 fac_culture_16 = 22 fac_culture_17 = 23 fac_culture_18 = 24 fac_culture_19 = 25 fac_culture_20 = 26 fac_culture_player = 27 fac_player_faction = 28 fac_player_supporters_faction = 29 fac_kingdom_1 = 30 fac_kingdom_2 = 31 fac_kingdom_3 = 32 fac_kingdom_4 = 33 fac_kingdom_5 = 34 fac_kingdom_6 = 35 fac_kingdom_7 = 36 fac_kingdom_8 = 37 fac_kingdom_9 = 38 fac_kingdom_10 = 39 fac_kingdom_11 = 40 fac_kingdom_12 = 41 fac_kingdom_13 = 42 fac_kingdom_14 = 43 fac_kingdom_15 = 44 fac_kingdom_16 = 45 fac_kingdom_17 = 46 fac_kingdom_18 = 47 fac_kingdom_19 = 48 fac_kingdom_20 = 49 fac_kingdoms_end = 50 fac_robber_knights = 51 fac_khergits = 52 fac_black_khergits = 53 fac_manhunters = 54 fac_deserters = 55 fac_woku_pirates = 56 fac_shinano_rebel = 57 fac_undeads = 58 fac_slavers = 59 fac_shinano_rebels = 60 fac_noble_refugees = 61
fac_no_faction = 0 fac_commoners = 1 fac_outlaws = 2 fac_neutral = 3 fac_innocents = 4 fac_merchants = 5 fac_dark_knights = 6 fac_culture_1 = 7 fac_culture_2 = 8 fac_culture_3 = 9 fac_culture_4 = 10 fac_culture_5 = 11 fac_culture_6 = 12 fac_culture_7 = 13 fac_culture_8 = 14 fac_culture_9 = 15 fac_culture_10 = 16 fac_culture_11 = 17 fac_culture_12 = 18 fac_culture_13 = 19 fac_culture_14 = 20 fac_culture_15 = 21 fac_culture_16 = 22 fac_culture_17 = 23 fac_culture_18 = 24 fac_culture_19 = 25 fac_culture_20 = 26 fac_culture_player = 27 fac_player_faction = 28 fac_player_supporters_faction = 29 fac_kingdom_1 = 30 fac_kingdom_2 = 31 fac_kingdom_3 = 32 fac_kingdom_4 = 33 fac_kingdom_5 = 34 fac_kingdom_6 = 35 fac_kingdom_7 = 36 fac_kingdom_8 = 37 fac_kingdom_9 = 38 fac_kingdom_10 = 39 fac_kingdom_11 = 40 fac_kingdom_12 = 41 fac_kingdom_13 = 42 fac_kingdom_14 = 43 fac_kingdom_15 = 44 fac_kingdom_16 = 45 fac_kingdom_17 = 46 fac_kingdom_18 = 47 fac_kingdom_19 = 48 fac_kingdom_20 = 49 fac_kingdoms_end = 50 fac_robber_knights = 51 fac_khergits = 52 fac_black_khergits = 53 fac_manhunters = 54 fac_deserters = 55 fac_woku_pirates = 56 fac_shinano_rebel = 57 fac_undeads = 58 fac_slavers = 59 fac_shinano_rebels = 60 fac_noble_refugees = 61
n = int(input("Enter the number to be checked:")) m = (n//2)+1 c = 0 for i in range(2,m): if n%i == 0: c = 1 if c == 0: print("The number",n,"is prime") else: print("The number",n,"is not prime")
n = int(input('Enter the number to be checked:')) m = n // 2 + 1 c = 0 for i in range(2, m): if n % i == 0: c = 1 if c == 0: print('The number', n, 'is prime') else: print('The number', n, 'is not prime')
# Class # "The best material model of a cat is another, or preferably the same, cat." # # You probably won't define your own in this class, but you will have to know how to use someone else's. # # Stanley H.I. Lio # hlio@hawaii.edu # OCN318, S18, S19 # this defines a CLASS (indentation matters!): class Mordor: pass # create an INSTANCE of a class and point a variable to it so you can refer to it later m = Mordor() # a class can contain stuff like literals and functions # (incidentally this also overwrites the previous (empty) definition of the class Mordor) class Mordor: locations = ['front yard', 'dungeon', 'driveway', 'bathroom'] # now any instances of type Mordor would have a method called "walk_int()" def walk_into(self, v): return 'one does not simply ' + v # and you use them like this: m = Mordor() for loc in m.locations: print(loc) print(m.walk_into('open the pod bay door')) print(type(m.walk_into("it doesn't have to make sense"))) # if a function returns a string... print(m.walk_into('shows up') + ' during office hours') # you treat it like a string (slice, split, concatenation, format...) # This won't make any sense to you until you actually use it - it made no sense to # me when I was in college.. For now it's enough to know how to recognize one and use it. # Browse into the folder named "node" in your home directory, under ~/node/drivers. You # can see lots of class in there.
class Mordor: pass m = mordor() class Mordor: locations = ['front yard', 'dungeon', 'driveway', 'bathroom'] def walk_into(self, v): return 'one does not simply ' + v m = mordor() for loc in m.locations: print(loc) print(m.walk_into('open the pod bay door')) print(type(m.walk_into("it doesn't have to make sense"))) print(m.walk_into('shows up') + ' during office hours')
class SenderKeyDistributionMessageAttributes(object): def __init__(self, group_id, axolotl_sender_key_distribution_message): self._group_id = group_id self._axolotl_sender_key_distribution_message = axolotl_sender_key_distribution_message def __str__(self): attrs = [] if self.group_id is not None: attrs.append(("group_id", self.group_id)) if self.axolotl_sender_key_distribution_message is not None: attrs.append(("axolotl_sender_key_distribution_message", "[binary omitted]")) return "[%s]" % " ".join((map(lambda item: "%s=%s" % item, attrs))) @property def group_id(self): return self._group_id @group_id.setter def group_id(self, value): self._group_id = value @property def axolotl_sender_key_distribution_message(self): return self._axolotl_sender_key_distribution_message @axolotl_sender_key_distribution_message.setter def axolotl_sender_key_distribution_message(self, value): self._axolotl_sender_key_distribution_message = value
class Senderkeydistributionmessageattributes(object): def __init__(self, group_id, axolotl_sender_key_distribution_message): self._group_id = group_id self._axolotl_sender_key_distribution_message = axolotl_sender_key_distribution_message def __str__(self): attrs = [] if self.group_id is not None: attrs.append(('group_id', self.group_id)) if self.axolotl_sender_key_distribution_message is not None: attrs.append(('axolotl_sender_key_distribution_message', '[binary omitted]')) return '[%s]' % ' '.join(map(lambda item: '%s=%s' % item, attrs)) @property def group_id(self): return self._group_id @group_id.setter def group_id(self, value): self._group_id = value @property def axolotl_sender_key_distribution_message(self): return self._axolotl_sender_key_distribution_message @axolotl_sender_key_distribution_message.setter def axolotl_sender_key_distribution_message(self, value): self._axolotl_sender_key_distribution_message = value
class Genre: def __init__(self, genre_name: str): if genre_name == "" or type(genre_name) is not str: self.name = None else: self.name = genre_name.strip() def __repr__(self): return f"<Genre {self.name}>" def __eq__(self, other: 'Genre') -> bool: return self.name == other.name def __lt__(self, other: 'Genre') -> bool: return self.name < other.name def __hash__(self): return hash(self.name)
class Genre: def __init__(self, genre_name: str): if genre_name == '' or type(genre_name) is not str: self.name = None else: self.name = genre_name.strip() def __repr__(self): return f'<Genre {self.name}>' def __eq__(self, other: 'Genre') -> bool: return self.name == other.name def __lt__(self, other: 'Genre') -> bool: return self.name < other.name def __hash__(self): return hash(self.name)
class frame_buffer(): def __init__(self): self.frame1 = None self.frame2 = None def set_current(self, frame): self.frame1 = self.frame2 self.frame2 = frame
class Frame_Buffer: def __init__(self): self.frame1 = None self.frame2 = None def set_current(self, frame): self.frame1 = self.frame2 self.frame2 = frame
class Hero: #private class variabel __jumlah = 0 def __init__(self,name,health,attPower,armor): self.__name = name self.__healthStandar = health self.__attPowerStandar = attPower self.__armorStandar = armor self.__level = 1 self.__exp = 0 self.__healthMax = self.__healthStandar * self.__level self.__attPower = self.__attPowerStandar * self.__level self.__armor = self.__armorStandar * self.__level self.__health = self.__healthMax Hero.__jumlah += 1 @property def info(self): return "{} level {}: \n\thealth = {}/{} \n\tattack = {} \n\tarmor = {}".format(self.__name,self.__level,self.__health,self.__healthMax,self.__attPower,self.__armor) @property def gainExp(self): pass @gainExp.setter def gainExp(self,addExp): self.__exp += addExp if (self.__exp >= 100): print(self.__name, 'level up') self.__level += 1 self.__exp -= 100 self.__healthMax = self.__healthStandar * self.__level self.__attPower = self.__attPowerStandar * self.__level self.__armor = self.__armorStandar * self.__level def attack(self,musuh): self.gainExp = 50 slardar = Hero('slardar', 100, 5, 10) axe = Hero('axe', 100, 5, 10) print(slardar.info) slardar.attack(axe) slardar.attack(axe) slardar.attack(axe) print(slardar.info)
class Hero: __jumlah = 0 def __init__(self, name, health, attPower, armor): self.__name = name self.__healthStandar = health self.__attPowerStandar = attPower self.__armorStandar = armor self.__level = 1 self.__exp = 0 self.__healthMax = self.__healthStandar * self.__level self.__attPower = self.__attPowerStandar * self.__level self.__armor = self.__armorStandar * self.__level self.__health = self.__healthMax Hero.__jumlah += 1 @property def info(self): return '{} level {}: \n\thealth = {}/{} \n\tattack = {} \n\tarmor = {}'.format(self.__name, self.__level, self.__health, self.__healthMax, self.__attPower, self.__armor) @property def gain_exp(self): pass @gainExp.setter def gain_exp(self, addExp): self.__exp += addExp if self.__exp >= 100: print(self.__name, 'level up') self.__level += 1 self.__exp -= 100 self.__healthMax = self.__healthStandar * self.__level self.__attPower = self.__attPowerStandar * self.__level self.__armor = self.__armorStandar * self.__level def attack(self, musuh): self.gainExp = 50 slardar = hero('slardar', 100, 5, 10) axe = hero('axe', 100, 5, 10) print(slardar.info) slardar.attack(axe) slardar.attack(axe) slardar.attack(axe) print(slardar.info)
class Rectangle: def __init__(self, width, height): self.width = width self.height = height def area(self): return self.width * self.height @classmethod def new_square(cls, side_length): return cls(side_length, side_length) class num: @staticmethod def add(a, b): return a + b square = Rectangle.new_square(5) print(square.area()) print(num.add(4, 5))
class Rectangle: def __init__(self, width, height): self.width = width self.height = height def area(self): return self.width * self.height @classmethod def new_square(cls, side_length): return cls(side_length, side_length) class Num: @staticmethod def add(a, b): return a + b square = Rectangle.new_square(5) print(square.area()) print(num.add(4, 5))
a_factor = 16807 b_factor = 48271 generator_mod = 2147483647 check_mask = 0xffff def part1(a_seed, b_seed): judge = 0 a = a_seed b = b_seed for i in range(40*10**6): a = (a*a_factor) % generator_mod b = (b*b_factor) % generator_mod if a & check_mask == b & check_mask: judge += 1 return judge def part2(a_seed, b_seed): judge = 0 a = a_seed b = b_seed for i in range(5*10**6): a = (a*a_factor) % generator_mod while a % 4 != 0: a = (a*a_factor) % generator_mod b = (b*b_factor) % generator_mod while b % 8 != 0: b = (b*b_factor) % generator_mod if a & check_mask == b & check_mask: judge += 1 return judge if __name__ == '__main__': a_seed = 783 b_seed = 325 p1 = part1(a_seed, b_seed) print("Part 1: {}".format(p1)) p2 = part2(a_seed, b_seed) print("Part 2: {}".format(p2))
a_factor = 16807 b_factor = 48271 generator_mod = 2147483647 check_mask = 65535 def part1(a_seed, b_seed): judge = 0 a = a_seed b = b_seed for i in range(40 * 10 ** 6): a = a * a_factor % generator_mod b = b * b_factor % generator_mod if a & check_mask == b & check_mask: judge += 1 return judge def part2(a_seed, b_seed): judge = 0 a = a_seed b = b_seed for i in range(5 * 10 ** 6): a = a * a_factor % generator_mod while a % 4 != 0: a = a * a_factor % generator_mod b = b * b_factor % generator_mod while b % 8 != 0: b = b * b_factor % generator_mod if a & check_mask == b & check_mask: judge += 1 return judge if __name__ == '__main__': a_seed = 783 b_seed = 325 p1 = part1(a_seed, b_seed) print('Part 1: {}'.format(p1)) p2 = part2(a_seed, b_seed) print('Part 2: {}'.format(p2))
# # PySNMP MIB module HP-SWITCH-ERROR-MSG-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HP-SWITCH-ERROR-MSG-MIB # Produced by pysmi-0.3.4 at Wed May 1 13:36:45 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueSizeConstraint, ConstraintsUnion, ConstraintsIntersection, SingleValueConstraint, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ConstraintsUnion", "ConstraintsIntersection", "SingleValueConstraint", "ValueRangeConstraint") hpSwitch, = mibBuilder.importSymbols("HP-ICF-OID", "hpSwitch") ModuleCompliance, NotificationGroup, ObjectGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup", "ObjectGroup") MibIdentifier, Counter32, NotificationType, MibScalar, MibTable, MibTableRow, MibTableColumn, iso, Unsigned32, ModuleIdentity, Gauge32, Integer32, TimeTicks, Bits, IpAddress, Counter64, ObjectIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "MibIdentifier", "Counter32", "NotificationType", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "iso", "Unsigned32", "ModuleIdentity", "Gauge32", "Integer32", "TimeTicks", "Bits", "IpAddress", "Counter64", "ObjectIdentity") DisplayString, TextualConvention, DateAndTime = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention", "DateAndTime") hpSwitchErrorMsgMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 68)) hpSwitchErrorMsgMIB.setRevisions(('2009-04-06 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: hpSwitchErrorMsgMIB.setRevisionsDescriptions(('First Revision',)) if mibBuilder.loadTexts: hpSwitchErrorMsgMIB.setLastUpdated('200904060000Z') if mibBuilder.loadTexts: hpSwitchErrorMsgMIB.setOrganization('HP Networking') if mibBuilder.loadTexts: hpSwitchErrorMsgMIB.setContactInfo('Hewlett Packard Company 8000 Foothills Blvd. Roseville, CA 95747') if mibBuilder.loadTexts: hpSwitchErrorMsgMIB.setDescription('This MIB module is for the Switch Error Messages reporting with SNMP') hpSwitchErrorMsgObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 68, 1)) hpSwitchErrorMsgTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 68, 1, 1), ) if mibBuilder.loadTexts: hpSwitchErrorMsgTable.setStatus('current') if mibBuilder.loadTexts: hpSwitchErrorMsgTable.setDescription('This table contains the error status of the most recent SNMP operation for each of the management entities. This table contains 10 application entries with 10 error message entries for each application. This table holds maximum 100 error message entries') hpSwitchErrorMsgEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 68, 1, 1, 1), ).setIndexNames((0, "HP-SWITCH-ERROR-MSG-MIB", "hpSwitchErrorEntityType"), (0, "HP-SWITCH-ERROR-MSG-MIB", "hpSwitchErrorEntityHandle"), (0, "HP-SWITCH-ERROR-MSG-MIB", "hpSwitchErrorSnmpSeqCode")) if mibBuilder.loadTexts: hpSwitchErrorMsgEntry.setStatus('current') if mibBuilder.loadTexts: hpSwitchErrorMsgEntry.setDescription('An entry contains the information on the handle of the entity and the corresponding error messages indexed with the SNMP sequence code.') hpSwitchErrorEntityType = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 68, 1, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("others", 1), ("cliSession", 2), ("webSession", 3), ("ipV4Address", 4), ("ipV6Address", 5), ("oaApplication", 6)))) if mibBuilder.loadTexts: hpSwitchErrorEntityType.setStatus('current') if mibBuilder.loadTexts: hpSwitchErrorEntityType.setDescription('The management entity from which a SNMP request arrives. For the CLI application the value will be (2). The value will be (3) if the request is from a web application. If the management entity is a Net Management application the value will be either (4) or (5) depending on whether they are carrying an IPv4 or an IPv6 address. For the OA (Open Architecture application the value will be (6).') hpSwitchErrorEntityHandle = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 68, 1, 1, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 96))) if mibBuilder.loadTexts: hpSwitchErrorEntityHandle.setStatus('current') if mibBuilder.loadTexts: hpSwitchErrorEntityHandle.setDescription('The handle corresponding to the application performing the SNMP operation. The handle will denote an IP Address, if the application is a Net management application. Or it will be the session id of the CLI, WEB or the OA application') hpSwitchErrorSnmpSeqCode = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 68, 1, 1, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))) if mibBuilder.loadTexts: hpSwitchErrorSnmpSeqCode.setStatus('current') if mibBuilder.loadTexts: hpSwitchErrorSnmpSeqCode.setDescription('This denotes the SNMP sequence code sent by the requester.') hpSwitchErrorTime = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 68, 1, 1, 1, 4), DateAndTime()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpSwitchErrorTime.setStatus('current') if mibBuilder.loadTexts: hpSwitchErrorTime.setDescription('This denotes the Date and Time when the SNMP set `request processing has failed.') hpSwitchErrorFailedOID = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 68, 1, 1, 1, 5), ObjectIdentifier()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpSwitchErrorFailedOID.setStatus('current') if mibBuilder.loadTexts: hpSwitchErrorFailedOID.setDescription('This denotes the OID of the SNMP Object for which the SNMP set request processing has failed.') hpSwitchEntityErrorMsg = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 68, 1, 1, 1, 6), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpSwitchEntityErrorMsg.setStatus('current') if mibBuilder.loadTexts: hpSwitchEntityErrorMsg.setDescription('An error message having descriptive information about the error for the failed SNMP set request.') hpSwitchSnmpErrorCode = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 68, 1, 1, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 18))).setMaxAccess("readonly") if mibBuilder.loadTexts: hpSwitchSnmpErrorCode.setStatus('current') if mibBuilder.loadTexts: hpSwitchSnmpErrorCode.setDescription('The SNMP error code which is retuned when the SNMP set request failed.') hpSwitchErrorMsgMIBConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 68, 2)) hpSwitchErrorMsgMIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 68, 2, 1)) hpSwitchErrorMsgMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 68, 2, 2)) hpSwitchErrorMsgMIBCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 68, 2, 1, 1)).setObjects(("HP-SWITCH-ERROR-MSG-MIB", "hpSwitchErrorMsgMIBGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hpSwitchErrorMsgMIBCompliance = hpSwitchErrorMsgMIBCompliance.setStatus('current') if mibBuilder.loadTexts: hpSwitchErrorMsgMIBCompliance.setDescription('The compliance statement for switch error message entities') hpSwitchErrorMsgMIBGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 68, 2, 2, 1)).setObjects(("HP-SWITCH-ERROR-MSG-MIB", "hpSwitchErrorTime"), ("HP-SWITCH-ERROR-MSG-MIB", "hpSwitchErrorFailedOID"), ("HP-SWITCH-ERROR-MSG-MIB", "hpSwitchEntityErrorMsg"), ("HP-SWITCH-ERROR-MSG-MIB", "hpSwitchSnmpErrorCode")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hpSwitchErrorMsgMIBGroup = hpSwitchErrorMsgMIBGroup.setStatus('current') if mibBuilder.loadTexts: hpSwitchErrorMsgMIBGroup.setDescription('A collection of objects for switch error message.') mibBuilder.exportSymbols("HP-SWITCH-ERROR-MSG-MIB", hpSwitchErrorMsgMIBCompliances=hpSwitchErrorMsgMIBCompliances, hpSwitchErrorMsgMIBGroups=hpSwitchErrorMsgMIBGroups, hpSwitchErrorMsgObjects=hpSwitchErrorMsgObjects, hpSwitchErrorMsgMIBConformance=hpSwitchErrorMsgMIBConformance, hpSwitchErrorMsgEntry=hpSwitchErrorMsgEntry, hpSwitchErrorSnmpSeqCode=hpSwitchErrorSnmpSeqCode, hpSwitchSnmpErrorCode=hpSwitchSnmpErrorCode, hpSwitchErrorMsgTable=hpSwitchErrorMsgTable, hpSwitchErrorEntityHandle=hpSwitchErrorEntityHandle, hpSwitchErrorFailedOID=hpSwitchErrorFailedOID, PYSNMP_MODULE_ID=hpSwitchErrorMsgMIB, hpSwitchErrorTime=hpSwitchErrorTime, hpSwitchErrorEntityType=hpSwitchErrorEntityType, hpSwitchErrorMsgMIBGroup=hpSwitchErrorMsgMIBGroup, hpSwitchErrorMsgMIBCompliance=hpSwitchErrorMsgMIBCompliance, hpSwitchEntityErrorMsg=hpSwitchEntityErrorMsg, hpSwitchErrorMsgMIB=hpSwitchErrorMsgMIB)
(integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_size_constraint, constraints_union, constraints_intersection, single_value_constraint, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueSizeConstraint', 'ConstraintsUnion', 'ConstraintsIntersection', 'SingleValueConstraint', 'ValueRangeConstraint') (hp_switch,) = mibBuilder.importSymbols('HP-ICF-OID', 'hpSwitch') (module_compliance, notification_group, object_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup', 'ObjectGroup') (mib_identifier, counter32, notification_type, mib_scalar, mib_table, mib_table_row, mib_table_column, iso, unsigned32, module_identity, gauge32, integer32, time_ticks, bits, ip_address, counter64, object_identity) = mibBuilder.importSymbols('SNMPv2-SMI', 'MibIdentifier', 'Counter32', 'NotificationType', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'iso', 'Unsigned32', 'ModuleIdentity', 'Gauge32', 'Integer32', 'TimeTicks', 'Bits', 'IpAddress', 'Counter64', 'ObjectIdentity') (display_string, textual_convention, date_and_time) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention', 'DateAndTime') hp_switch_error_msg_mib = module_identity((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 68)) hpSwitchErrorMsgMIB.setRevisions(('2009-04-06 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: hpSwitchErrorMsgMIB.setRevisionsDescriptions(('First Revision',)) if mibBuilder.loadTexts: hpSwitchErrorMsgMIB.setLastUpdated('200904060000Z') if mibBuilder.loadTexts: hpSwitchErrorMsgMIB.setOrganization('HP Networking') if mibBuilder.loadTexts: hpSwitchErrorMsgMIB.setContactInfo('Hewlett Packard Company 8000 Foothills Blvd. Roseville, CA 95747') if mibBuilder.loadTexts: hpSwitchErrorMsgMIB.setDescription('This MIB module is for the Switch Error Messages reporting with SNMP') hp_switch_error_msg_objects = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 68, 1)) hp_switch_error_msg_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 68, 1, 1)) if mibBuilder.loadTexts: hpSwitchErrorMsgTable.setStatus('current') if mibBuilder.loadTexts: hpSwitchErrorMsgTable.setDescription('This table contains the error status of the most recent SNMP operation for each of the management entities. This table contains 10 application entries with 10 error message entries for each application. This table holds maximum 100 error message entries') hp_switch_error_msg_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 68, 1, 1, 1)).setIndexNames((0, 'HP-SWITCH-ERROR-MSG-MIB', 'hpSwitchErrorEntityType'), (0, 'HP-SWITCH-ERROR-MSG-MIB', 'hpSwitchErrorEntityHandle'), (0, 'HP-SWITCH-ERROR-MSG-MIB', 'hpSwitchErrorSnmpSeqCode')) if mibBuilder.loadTexts: hpSwitchErrorMsgEntry.setStatus('current') if mibBuilder.loadTexts: hpSwitchErrorMsgEntry.setDescription('An entry contains the information on the handle of the entity and the corresponding error messages indexed with the SNMP sequence code.') hp_switch_error_entity_type = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 68, 1, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('others', 1), ('cliSession', 2), ('webSession', 3), ('ipV4Address', 4), ('ipV6Address', 5), ('oaApplication', 6)))) if mibBuilder.loadTexts: hpSwitchErrorEntityType.setStatus('current') if mibBuilder.loadTexts: hpSwitchErrorEntityType.setDescription('The management entity from which a SNMP request arrives. For the CLI application the value will be (2). The value will be (3) if the request is from a web application. If the management entity is a Net Management application the value will be either (4) or (5) depending on whether they are carrying an IPv4 or an IPv6 address. For the OA (Open Architecture application the value will be (6).') hp_switch_error_entity_handle = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 68, 1, 1, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(0, 96))) if mibBuilder.loadTexts: hpSwitchErrorEntityHandle.setStatus('current') if mibBuilder.loadTexts: hpSwitchErrorEntityHandle.setDescription('The handle corresponding to the application performing the SNMP operation. The handle will denote an IP Address, if the application is a Net management application. Or it will be the session id of the CLI, WEB or the OA application') hp_switch_error_snmp_seq_code = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 68, 1, 1, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))) if mibBuilder.loadTexts: hpSwitchErrorSnmpSeqCode.setStatus('current') if mibBuilder.loadTexts: hpSwitchErrorSnmpSeqCode.setDescription('This denotes the SNMP sequence code sent by the requester.') hp_switch_error_time = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 68, 1, 1, 1, 4), date_and_time()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpSwitchErrorTime.setStatus('current') if mibBuilder.loadTexts: hpSwitchErrorTime.setDescription('This denotes the Date and Time when the SNMP set `request processing has failed.') hp_switch_error_failed_oid = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 68, 1, 1, 1, 5), object_identifier()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpSwitchErrorFailedOID.setStatus('current') if mibBuilder.loadTexts: hpSwitchErrorFailedOID.setDescription('This denotes the OID of the SNMP Object for which the SNMP set request processing has failed.') hp_switch_entity_error_msg = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 68, 1, 1, 1, 6), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpSwitchEntityErrorMsg.setStatus('current') if mibBuilder.loadTexts: hpSwitchEntityErrorMsg.setDescription('An error message having descriptive information about the error for the failed SNMP set request.') hp_switch_snmp_error_code = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 68, 1, 1, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(0, 18))).setMaxAccess('readonly') if mibBuilder.loadTexts: hpSwitchSnmpErrorCode.setStatus('current') if mibBuilder.loadTexts: hpSwitchSnmpErrorCode.setDescription('The SNMP error code which is retuned when the SNMP set request failed.') hp_switch_error_msg_mib_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 68, 2)) hp_switch_error_msg_mib_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 68, 2, 1)) hp_switch_error_msg_mib_groups = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 68, 2, 2)) hp_switch_error_msg_mib_compliance = module_compliance((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 68, 2, 1, 1)).setObjects(('HP-SWITCH-ERROR-MSG-MIB', 'hpSwitchErrorMsgMIBGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hp_switch_error_msg_mib_compliance = hpSwitchErrorMsgMIBCompliance.setStatus('current') if mibBuilder.loadTexts: hpSwitchErrorMsgMIBCompliance.setDescription('The compliance statement for switch error message entities') hp_switch_error_msg_mib_group = object_group((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 5, 1, 68, 2, 2, 1)).setObjects(('HP-SWITCH-ERROR-MSG-MIB', 'hpSwitchErrorTime'), ('HP-SWITCH-ERROR-MSG-MIB', 'hpSwitchErrorFailedOID'), ('HP-SWITCH-ERROR-MSG-MIB', 'hpSwitchEntityErrorMsg'), ('HP-SWITCH-ERROR-MSG-MIB', 'hpSwitchSnmpErrorCode')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hp_switch_error_msg_mib_group = hpSwitchErrorMsgMIBGroup.setStatus('current') if mibBuilder.loadTexts: hpSwitchErrorMsgMIBGroup.setDescription('A collection of objects for switch error message.') mibBuilder.exportSymbols('HP-SWITCH-ERROR-MSG-MIB', hpSwitchErrorMsgMIBCompliances=hpSwitchErrorMsgMIBCompliances, hpSwitchErrorMsgMIBGroups=hpSwitchErrorMsgMIBGroups, hpSwitchErrorMsgObjects=hpSwitchErrorMsgObjects, hpSwitchErrorMsgMIBConformance=hpSwitchErrorMsgMIBConformance, hpSwitchErrorMsgEntry=hpSwitchErrorMsgEntry, hpSwitchErrorSnmpSeqCode=hpSwitchErrorSnmpSeqCode, hpSwitchSnmpErrorCode=hpSwitchSnmpErrorCode, hpSwitchErrorMsgTable=hpSwitchErrorMsgTable, hpSwitchErrorEntityHandle=hpSwitchErrorEntityHandle, hpSwitchErrorFailedOID=hpSwitchErrorFailedOID, PYSNMP_MODULE_ID=hpSwitchErrorMsgMIB, hpSwitchErrorTime=hpSwitchErrorTime, hpSwitchErrorEntityType=hpSwitchErrorEntityType, hpSwitchErrorMsgMIBGroup=hpSwitchErrorMsgMIBGroup, hpSwitchErrorMsgMIBCompliance=hpSwitchErrorMsgMIBCompliance, hpSwitchEntityErrorMsg=hpSwitchEntityErrorMsg, hpSwitchErrorMsgMIB=hpSwitchErrorMsgMIB)
def playeraction(action, amount, chipsleft, chipsinplay, lastraise, amounttocall): chipstotal = chipsinplay + chipsleft if action == 'fold': if chipsinplay < amounttocall: return { 'fold': True } return { 'fail': True } elif action == 'check': if chipsinplay != amounttocall: return { 'fail': True } return {} elif action == 'call': if chipsinplay >= amounttocall: return { 'fail': True } if amounttocall > chipstotal: return { 'chipsleft': 0, 'chipsinplay': chipstotal } return { 'chipsleft': chipstotal - amounttocall, 'chipsinplay': amounttocall } elif action == 'raise': if amount <= amounttocall: return { 'fail': True } if amount >= chipstotal: retval = { 'chipsleft': 0, 'chipsinplay': chipstotal, 'amounttocall': chipstotal } if chipstotal >= amounttocall + lastraise: retval['lastraise'] = chipstotal - amounttocall return retval if amount < amounttocall + lastraise: return { 'fail': True } return { 'chipsleft': chipstotal - amount, 'chipsinplay': amount, 'amounttocall': amount, 'lastraise': amount - amounttocall } return { 'fail': True } if __name__ == '__main__': action = playeraction('fold', -1, 10, 20, 10, 30) if not action['fold']: print('Test1 failed') action = playeraction('fold', -1, 10, 20, 10, 20) if not action['fail']: print('Test2 failed') action = playeraction('call', -1, 10, 20, 10, 20) if not action['fail']: print('Test3 failed') action = playeraction('call', -1, 10, 20, 10, 30) if action['chipsleft'] != 0 and action['chipsinplay'] != 30: print('Test4 failed') action = playeraction('call', -1, 5, 20, 10, 30) if action['chipsleft'] != 0 and action['chipsinplay'] != 25: print('Test5 failed') action = playeraction('call', -1, 20, 20, 10, 30) if action['chipsleft'] != 10 and action['chipsinplay'] != 30: print('Test6 failed') action = playeraction('check', -1, 20, 20, 10, 30) if not action['fail']: print('Test7 failed') action = playeraction('check', -1, 20, 20, 10, 30) if not action: print('Test8 failed') action = playeraction('raise', 30, 20, 20, 10, 30) if not action['fail']: print('Test9 failed') action = playeraction('raise', 30, 20, 20, 10, 25) if not action['fail']: print('Test10 failed') action = playeraction('raise', 40, 20, 20, 10, 25) if action['chipsleft'] != 0 or action['chipsinplay'] != 40 or action['amounttocall'] != 40 or action['lastraise'] != 15: print('Test11 failed') action = playeraction('raise', 40, 20, 20, 20, 25) if action['chipsleft'] != 0 or action['chipsinplay'] != 40 or action['amounttocall'] != 40 or 'lastraise' in action: print('Test12 failed') action = playeraction('raise', 30, 20, 20, 10, 20) if action['chipsleft'] != 10 or action['chipsinplay'] != 30 or action['amounttocall'] != 30 or action['lastraise'] != 10: print('Test13 failed') action = playeraction('raise', 30, 20, 20, 15, 20) if not action['fail']: print('Test14 failed')
def playeraction(action, amount, chipsleft, chipsinplay, lastraise, amounttocall): chipstotal = chipsinplay + chipsleft if action == 'fold': if chipsinplay < amounttocall: return {'fold': True} return {'fail': True} elif action == 'check': if chipsinplay != amounttocall: return {'fail': True} return {} elif action == 'call': if chipsinplay >= amounttocall: return {'fail': True} if amounttocall > chipstotal: return {'chipsleft': 0, 'chipsinplay': chipstotal} return {'chipsleft': chipstotal - amounttocall, 'chipsinplay': amounttocall} elif action == 'raise': if amount <= amounttocall: return {'fail': True} if amount >= chipstotal: retval = {'chipsleft': 0, 'chipsinplay': chipstotal, 'amounttocall': chipstotal} if chipstotal >= amounttocall + lastraise: retval['lastraise'] = chipstotal - amounttocall return retval if amount < amounttocall + lastraise: return {'fail': True} return {'chipsleft': chipstotal - amount, 'chipsinplay': amount, 'amounttocall': amount, 'lastraise': amount - amounttocall} return {'fail': True} if __name__ == '__main__': action = playeraction('fold', -1, 10, 20, 10, 30) if not action['fold']: print('Test1 failed') action = playeraction('fold', -1, 10, 20, 10, 20) if not action['fail']: print('Test2 failed') action = playeraction('call', -1, 10, 20, 10, 20) if not action['fail']: print('Test3 failed') action = playeraction('call', -1, 10, 20, 10, 30) if action['chipsleft'] != 0 and action['chipsinplay'] != 30: print('Test4 failed') action = playeraction('call', -1, 5, 20, 10, 30) if action['chipsleft'] != 0 and action['chipsinplay'] != 25: print('Test5 failed') action = playeraction('call', -1, 20, 20, 10, 30) if action['chipsleft'] != 10 and action['chipsinplay'] != 30: print('Test6 failed') action = playeraction('check', -1, 20, 20, 10, 30) if not action['fail']: print('Test7 failed') action = playeraction('check', -1, 20, 20, 10, 30) if not action: print('Test8 failed') action = playeraction('raise', 30, 20, 20, 10, 30) if not action['fail']: print('Test9 failed') action = playeraction('raise', 30, 20, 20, 10, 25) if not action['fail']: print('Test10 failed') action = playeraction('raise', 40, 20, 20, 10, 25) if action['chipsleft'] != 0 or action['chipsinplay'] != 40 or action['amounttocall'] != 40 or (action['lastraise'] != 15): print('Test11 failed') action = playeraction('raise', 40, 20, 20, 20, 25) if action['chipsleft'] != 0 or action['chipsinplay'] != 40 or action['amounttocall'] != 40 or ('lastraise' in action): print('Test12 failed') action = playeraction('raise', 30, 20, 20, 10, 20) if action['chipsleft'] != 10 or action['chipsinplay'] != 30 or action['amounttocall'] != 30 or (action['lastraise'] != 10): print('Test13 failed') action = playeraction('raise', 30, 20, 20, 15, 20) if not action['fail']: print('Test14 failed')
# MIT License # # Copyright (c) 2020 Tony Wu <tony[dot]wu(at)nyu[dot]edu> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. def bulk_fetch(cur, size=100000, log=None): i = 0 rows = cur.fetchmany(size) while rows: for row in rows: i += 1 yield row if log: log.info(f'Fetched {i} rows.') rows = cur.fetchmany(size) def offset_fetch(conn, stmt, table, *, values=(), size=100000, log=None): i = 0 offset = 0 max_id = conn.execute(f'SELECT max(rowid) FROM {table}').fetchone()[0] if not max_id: raise StopIteration while offset <= max_id: limited = stmt % {'offset': ( f'{table}.rowid IN ' f'(SELECT rowid FROM {table} ' f'ORDER BY rowid LIMIT {size} OFFSET {offset})' )} rows = conn.execute(limited, values) for row in rows: i += 1 yield row if log and i: log.info(f'Fetched {i} rows.') offset += size
def bulk_fetch(cur, size=100000, log=None): i = 0 rows = cur.fetchmany(size) while rows: for row in rows: i += 1 yield row if log: log.info(f'Fetched {i} rows.') rows = cur.fetchmany(size) def offset_fetch(conn, stmt, table, *, values=(), size=100000, log=None): i = 0 offset = 0 max_id = conn.execute(f'SELECT max(rowid) FROM {table}').fetchone()[0] if not max_id: raise StopIteration while offset <= max_id: limited = stmt % {'offset': f'{table}.rowid IN (SELECT rowid FROM {table} ORDER BY rowid LIMIT {size} OFFSET {offset})'} rows = conn.execute(limited, values) for row in rows: i += 1 yield row if log and i: log.info(f'Fetched {i} rows.') offset += size
#8-9 magic_name = ['zhoujielun','hemm','fangshiyu'] def show_magicians(name): print(name) new_magic_name = [] def make_great(name,names): for old_name in name: new_name = "the Great " + old_name new_magic_name.append(new_name) show_magicians(new_magic_name) show_magicians(names) make_great(magic_name[:],magic_name)
magic_name = ['zhoujielun', 'hemm', 'fangshiyu'] def show_magicians(name): print(name) new_magic_name = [] def make_great(name, names): for old_name in name: new_name = 'the Great ' + old_name new_magic_name.append(new_name) show_magicians(new_magic_name) show_magicians(names) make_great(magic_name[:], magic_name)
_base_ = ["./resnest50d_a6_AugCosyAAE_BG05_HBReal_200e_benchvise.py"] OUTPUT_DIR = "output/gdrn/hbSO/resnest50d_a6_AugCosyAAEGray_BG05_mlBCE_HBReal_200e/driller" DATASETS = dict( TRAIN=("hb_bdp_driller_train",), TEST=("hb_bdp_driller_test",), ) MODEL = dict( WEIGHTS="output/gdrn/lm_pbr/resnest50d_a6_AugCosyAAEGray_BG05_mlBCE_lm_pbr_100e/driller/model_final_wo_optim-4cfc7d64.pth", )
_base_ = ['./resnest50d_a6_AugCosyAAE_BG05_HBReal_200e_benchvise.py'] output_dir = 'output/gdrn/hbSO/resnest50d_a6_AugCosyAAEGray_BG05_mlBCE_HBReal_200e/driller' datasets = dict(TRAIN=('hb_bdp_driller_train',), TEST=('hb_bdp_driller_test',)) model = dict(WEIGHTS='output/gdrn/lm_pbr/resnest50d_a6_AugCosyAAEGray_BG05_mlBCE_lm_pbr_100e/driller/model_final_wo_optim-4cfc7d64.pth')
# -*- coding: utf-8 -*- __author__ = 'Christoph Herb' __email__ = 'ch.herb@gmx.de' __version__ = '0.1.0'
__author__ = 'Christoph Herb' __email__ = 'ch.herb@gmx.de' __version__ = '0.1.0'
game_properties = ["current_score", "high_score", "number_of_lives", "items_in_inventory", "power_ups", "ammo", "enemies_on_screen", "enemy_kills", "enemy_kill_streaks", "minutes_played", "notifications", "achievements"] print(f'{game_properties =}') print(f'{dict.fromkeys(game_properties, 0) =}')
game_properties = ['current_score', 'high_score', 'number_of_lives', 'items_in_inventory', 'power_ups', 'ammo', 'enemies_on_screen', 'enemy_kills', 'enemy_kill_streaks', 'minutes_played', 'notifications', 'achievements'] print(f'game_properties ={game_properties!r}') print(f'dict.fromkeys(game_properties, 0) ={dict.fromkeys(game_properties, 0)!r}')
# Simply prints a message # Author: Isabella message = 'I have eaten ' + str(99) + ' burritos.' print(message)
message = 'I have eaten ' + str(99) + ' burritos.' print(message)
# # Object-Oriented Python: Dice Roller # Python Techdegree # # Created by Dulio Denis on 12/22/18. # Copyright (c) 2018 ddApps. All rights reserved. # ------------------------------------------------ # Challenge 4: Chance Scoring # ------------------------------------------------ # Challenge Task 1 of 2 # I've set you up with all of the code you've seen # in the course. I want you to add a score_chance # method to the YatzyScoresheet. # It should take a hand argument. # Return the sum total of the dice in the hand. # For example, a Hand of [1, 2, 2, 3, 4] would return a score of 12. class YatzyScoresheet: def score_ones(self, hand): return sum(hand.ones) def _score_set(self, hand, set_size): scores = [0] for worth, count in hand._sets.items(): if count == set_size: scores.append(worth*set_size) return max(scores) def score_one_pair(self, hand): return self._score_set(hand, 2) def score_chance(self, hand): score = 0 for value in hand: score += value return score # ------------------------------------------------ # Challenge Task 2 of 2 # Great! Let's make one more scoring method! # Create a score_yatzy method. # If there are five dice with the same value, return 50. Otherwise, return 0. def score_yatzy(self, hand): # If the function self._score_set(hand,5) returns True # or any sort of Truthy data it means there are 5 of the same in the hand # therefore the if conditions returns 50. if self._score_set(hand, 5): return 50 # else return 0 else: return 0
class Yatzyscoresheet: def score_ones(self, hand): return sum(hand.ones) def _score_set(self, hand, set_size): scores = [0] for (worth, count) in hand._sets.items(): if count == set_size: scores.append(worth * set_size) return max(scores) def score_one_pair(self, hand): return self._score_set(hand, 2) def score_chance(self, hand): score = 0 for value in hand: score += value return score def score_yatzy(self, hand): if self._score_set(hand, 5): return 50 else: return 0
class ResponseHandler(): def error(self, content, title = 'Erro!'): try: resp = {'mensagem': {'titulo': title, 'conteudo': str(content)}, 'status': 'erro'} return resp except: return({'mensagem': {'titulo': 'Ops', 'conteudo': 'Erro no servidor'}, 'status': 'erro'}) def success(self, content, title = 'Sucesso!'): try: resp = {'mensagem': {'titulo': title, 'conteudo': content}, 'status': 'ok'} return resp except: return({'menssagem': {'titulo': 'Ops', 'conteudo': 'Erro no servidor'}, 'status': 'erro'})
class Responsehandler: def error(self, content, title='Erro!'): try: resp = {'mensagem': {'titulo': title, 'conteudo': str(content)}, 'status': 'erro'} return resp except: return {'mensagem': {'titulo': 'Ops', 'conteudo': 'Erro no servidor'}, 'status': 'erro'} def success(self, content, title='Sucesso!'): try: resp = {'mensagem': {'titulo': title, 'conteudo': content}, 'status': 'ok'} return resp except: return {'menssagem': {'titulo': 'Ops', 'conteudo': 'Erro no servidor'}, 'status': 'erro'}
default_queue_name = 'arku:queue' job_key_prefix = 'arku:job:' in_progress_key_prefix = 'arku:in-progress:' result_key_prefix = 'arku:result:' retry_key_prefix = 'arku:retry:' abort_jobs_ss = 'arku:abort' # age of items in the abort_key sorted set after which they're deleted abort_job_max_age = 60 health_check_key_suffix = ':health-check' # how long to keep the "in_progress" key after a cron job ends to prevent the job duplication # this can be a long time since each cron job has an ID that is unique for the intended execution time keep_cronjob_progress = 60
default_queue_name = 'arku:queue' job_key_prefix = 'arku:job:' in_progress_key_prefix = 'arku:in-progress:' result_key_prefix = 'arku:result:' retry_key_prefix = 'arku:retry:' abort_jobs_ss = 'arku:abort' abort_job_max_age = 60 health_check_key_suffix = ':health-check' keep_cronjob_progress = 60
def test_rstrip(filetab): filetab.textwidget.insert("end", 'print("hello") ') filetab.update() filetab.event_generate("<Return>") filetab.update() assert filetab.textwidget.get("1.0", "end - 1 char") == 'print("hello")\n'
def test_rstrip(filetab): filetab.textwidget.insert('end', 'print("hello") ') filetab.update() filetab.event_generate('<Return>') filetab.update() assert filetab.textwidget.get('1.0', 'end - 1 char') == 'print("hello")\n'
matrix_size = int(input()) matrix = [[int(num) for num in input().split(", ")] for _ in range(matrix_size)] primary_diagonal = [matrix[i][i] for i in range(matrix_size)] secondary_diagonal = [matrix[i][matrix_size - 1 - i] for i in range(matrix_size)] print(f"First diagonal: {', '.join([str(num) for num in primary_diagonal])}. " f"Sum: {sum(primary_diagonal)}\n" f"Second diagonal: {', '.join([str(num) for num in secondary_diagonal])}. " f"Sum: {sum(secondary_diagonal)}")
matrix_size = int(input()) matrix = [[int(num) for num in input().split(', ')] for _ in range(matrix_size)] primary_diagonal = [matrix[i][i] for i in range(matrix_size)] secondary_diagonal = [matrix[i][matrix_size - 1 - i] for i in range(matrix_size)] print(f"First diagonal: {', '.join([str(num) for num in primary_diagonal])}. Sum: {sum(primary_diagonal)}\nSecond diagonal: {', '.join([str(num) for num in secondary_diagonal])}. Sum: {sum(secondary_diagonal)}")
__version__ = '0.0.2-dev' if __name__ == '__main__': print(__version__)
__version__ = '0.0.2-dev' if __name__ == '__main__': print(__version__)
# Flatten function from official compiler python module (decapriated in python 3.x) # https://hg.python.org/cpython/file/3e7f88550788/Lib/compiler/ast.py#l7 # # used to flatten a list or tupel # # [1,2[3,4],[5,[6,7]]] -> [1,2,3,4,5,6,7] def flatten(seq): l = [] for elt in seq: t = type(elt) if t is tuple or t is list: for elt2 in flatten(elt): l.append(elt2) else: l.append(elt) return l
def flatten(seq): l = [] for elt in seq: t = type(elt) if t is tuple or t is list: for elt2 in flatten(elt): l.append(elt2) else: l.append(elt) return l
# It was implemented quicksort iterative due "Fatal Python error: Cannot recover from stack overflow." count = 0 # This function is same in both iterative and recursive def partition(arr,l,h): global count i = ( l - 1 ) x = arr[h] for j in range(l , h): count = count + 1 if arr[j] <= x: count = count + 1 # increment index of smaller element i = i+1 arr[i],arr[j] = arr[j],arr[i] arr[i+1],arr[h] = arr[h],arr[i+1] return (i+1) # Function to do Quick sort # arr[] --> Array to be sorted, # l --> Starting index, # h --> Ending index def quickSort(arr): global count l = 0 h = len(arr) - 1 # Create an auxiliary stack size = h - l + 1 stack = [0] * (size) # initialize top of stack top = -1 # push initial values of l and h to stack top = top + 1 stack[top] = l top = top + 1 stack[top] = h # Keep popping from stack while is not empty while top >= 0: count = count + 1 # Pop h and l h = stack[top] top = top - 1 l = stack[top] top = top - 1 # Set pivot element at its correct position in # sorted array p = partition( arr, l, h ) # If there are elements on left side of pivot, # then push left side to stack if p-1 > l: count = count + 1 top = top + 1 stack[top] = l top = top + 1 stack[top] = p - 1 # If there are elements on right side of pivot, # then push right side to stack if p+1 < h: count = count + 1 top = top + 1 stack[top] = p + 1 top = top + 1 stack[top] = h return count
count = 0 def partition(arr, l, h): global count i = l - 1 x = arr[h] for j in range(l, h): count = count + 1 if arr[j] <= x: count = count + 1 i = i + 1 (arr[i], arr[j]) = (arr[j], arr[i]) (arr[i + 1], arr[h]) = (arr[h], arr[i + 1]) return i + 1 def quick_sort(arr): global count l = 0 h = len(arr) - 1 size = h - l + 1 stack = [0] * size top = -1 top = top + 1 stack[top] = l top = top + 1 stack[top] = h while top >= 0: count = count + 1 h = stack[top] top = top - 1 l = stack[top] top = top - 1 p = partition(arr, l, h) if p - 1 > l: count = count + 1 top = top + 1 stack[top] = l top = top + 1 stack[top] = p - 1 if p + 1 < h: count = count + 1 top = top + 1 stack[top] = p + 1 top = top + 1 stack[top] = h return count
class Solution: def permute(self, nums): res = [] self.helper(nums, res, []) return res def helper(self, nums, res, path): if not nums: res.append(path) for i in range(len(nums)): self.helper(nums[:i] + nums[i + 1:], res, path + [nums[i]]) if __name__ == "__main__": nums = [1, 2, 3] s = Solution() print(s.permute(nums))
class Solution: def permute(self, nums): res = [] self.helper(nums, res, []) return res def helper(self, nums, res, path): if not nums: res.append(path) for i in range(len(nums)): self.helper(nums[:i] + nums[i + 1:], res, path + [nums[i]]) if __name__ == '__main__': nums = [1, 2, 3] s = solution() print(s.permute(nums))
class Auth0Exception(Exception): pass class InvalidTokenException(Auth0Exception): def __init__(self, token): self.token = token
class Auth0Exception(Exception): pass class Invalidtokenexception(Auth0Exception): def __init__(self, token): self.token = token
def zeros(n): def factor_count(f): sum = 0 F = f while F < n: sum += n // F F *= f return sum return min( factor_count(2), factor_count(5) )
def zeros(n): def factor_count(f): sum = 0 f = f while F < n: sum += n // F f *= f return sum return min(factor_count(2), factor_count(5))
def log(string): print(string) def debug(string): print(string)
def log(string): print(string) def debug(string): print(string)
# iterating over the keys: words = {'hello': 90, 'i': 550, 'am': 120, 'batman': 13, 'ball': 120} # for key in words.keys(): # print(key) # for key in words: # print(key) # iterate over the values # for value in words.values(): # print(value) # total_words = sum(words.values()) # print(total_words) # iterate over the items for key, value in words.items(): print(key, value)
words = {'hello': 90, 'i': 550, 'am': 120, 'batman': 13, 'ball': 120} for (key, value) in words.items(): print(key, value)
# exceptions.py -- custom exception classes for this module class PayloadException(Exception): ''' Something went wrong with the payload from the GitHub API. ''' pass class WorkerException(Exception): ''' Something went wrong in the worker process. ''' pass class QueueException(Exception): ''' Something went wrong in the queue process. ''' pass
class Payloadexception(Exception): """ Something went wrong with the payload from the GitHub API. """ pass class Workerexception(Exception): """ Something went wrong in the worker process. """ pass class Queueexception(Exception): """ Something went wrong in the queue process. """ pass