Similarities and differences analysis of several commonly used vectorized string methods

    1, cat and join methods similarities and differences:

    Join means to add a separator between each character of the string, and cat only needs to string the separators given by all the elements of the series when the first parameter other is None.

    If the ohters parameter is a list, each element of the Series will be stringed with the corresponding element in the list. Therefore, the function of join is less than cat, and join can be said to be a special case of cat.

    The results of the following example output are the same, both a:b:c, because the others parameter is None.

    From pandas import Series, DataFrame, Panel

    Newarray = [['x','y'],['1','2']]

    Print Series(['a', 'b','c']).str.cat(sep=':')

    Print ':'.join(Series(['a','b','c']).str[0])

    2, pad and ljust / rjust, center similarities and differences:

    When the pad is set to side=right, it is equivalent to ljust. Setting side=left is equivalent to rjust.

    Example 1: The following code execution results are the same

    From pandas import Series, DataFrame, Panel

    Print Series(['a','b','c']).str.rjust(4,'o')

    Print Series(['a','b','c']).str.pad(4,side='left',fillchar='o')

    When the pad is set side=both, it is equivalent to center.

    Example 2: The following code execution results are the same

    From pandas import Series, DataFrame, Panel

    Print Series(['a','b','c']).str.pad(4,side='both',fillchar='o')

    Print Series(['a','b','c']).str.center(4,'o')

    So pad can be said to be the union of ljust/rjust, center.

    Similarities and differences analysis of several commonly used vectorized string methods

    Explosion-proof Film

    The Anti-explosion Screen Protector is a Screen Protector that can effectively buffer impact, prevent the screen from bursting, or prevent the glass panel from breaking and falling apart due to accidental impact of the mobile phone. It has gloss, texture and surface hardness. The Explosion-proof Screen Protector strengthens the screen and reduces the chance of cracking, broken tempered glass is no longer frequently replaced.

    Compared with other Screen Protectors, Explosion-proof Screen Protectors have the following advantages:
    1. Anti-shattering: The PET material of the Explosion-proof Screen Protective Film has high strength, flexibility and elasticity, can fully decompose the impact force, and can effectively prevent the screen from being broken or damaged when the screen is impacted or dropped by external forces.

    2. HD Clear: The Explosion-proof Screen Protector is made of high-quality PET material, which can maintain a high-definition screen display effect and truly display the original screen color.

    3. Anti-fingerprint: The Anti-explosion Screen Protector has a built-in oleophobic and waterproof coating to prevent fingerprints and stains on the phone screen, providing your phone with original texture and perfect touch screen response speed.

    The use of an Explosion-proof Anti-explosion Screen Protector can effectively enhance the durability and protection of the mobile phone screen, reduce the risk of screen cracking and damage, and at the same time protect the clarity and quality of the screen display. Ideal for protecting your screen.

    PET Screen Protector, Explosion-proof Screen Protector, Explosion-proof Screen Protective Film, Explosion-proof Protective Film,Anti-explosion Screen Protector

    Shenzhen Jianjiantong Technology Co., Ltd. , https://www.tpuscreenprotector.com

    Previous Post: Robot programming is good, if you don’t work hard, you will be eliminated by the robot
    Next Post: A text to understand the difference between the current transformer accuracy 0.2 and 0.2S and the structure of the current transformer
    Home
    Recent Posts
    • High Power 100W Solar Energy LED Street Light
    • Hot Sale 18mm 10V Square SMD Piezo Buzzer Magnet…
    • LED Mini Warinig Lightbar with Magnet Mouting Em…
    • Communication, Telecommunication Monopole Steel …
    • 10′′-26′′ Cantilever TV Bracket TV Mount…
    • Rechargeable Electric Plug Mosquito Swatter with…
    • 2016 New Ce RoHS UL 5000-6500k Low Price T8 T5 L…
    • 10A 250V European Power AC DC Travel Universal A…
    • The development of robots has rapidly advanced t…
    • Aukus Exciting LED Module Outdoor Flood Light Li…
    • High Sensivity Key Control Overlay Silicone Rubb…
    • Yarn hairiness detection scheme based on machine…
    • Mobile phone, VR dual drive _ push up HTC's …
    • HDMI Splitter SP1001028
    • Which functions of smart door locks are really p…
    • China Manufacture Blood Bank Refrigerator
    • 21KV 35KV XLPE Steel Wire Armored PVC Sheathed P…
    • Small Torch Light, LED Light Torch
    • "The king of off-road" is backed by a …
    • "The king of off-road" is backed by a …