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.
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