পৃষ্ঠাসমূহ

Search Your Article

CS

 

Welcome to GoogleDG – your one-stop destination for free learning resources, guides, and digital tools.

At GoogleDG, we believe that knowledge should be accessible to everyone. Our mission is to provide readers with valuable ebooks, tutorials, and tech-related content that makes learning easier, faster, and more enjoyable.

What We Offer:

  • 📘 Free & Helpful Ebooks – covering education, technology, self-development, and more.

  • 💻 Step-by-Step Tutorials – practical guides on digital tools, apps, and software.

  • 🌐 Tech Updates & Tips – simplified information to keep you informed in the fast-changing digital world.

  • 🎯 Learning Support – resources designed to support students, professionals, and lifelong learners.

    Latest world News 

     

Our Vision

To create a digital knowledge hub where anyone, from beginners to advanced learners, can find trustworthy resources and grow their skills.

Why Choose Us?

✔ Simple explanations of complex topics
✔ 100% free access to resources
✔ Regularly updated content
✔ A community that values knowledge sharing

We are continuously working to expand our content library and provide readers with the most useful and relevant digital learning materials.

📩 If you’d like to connect, share feedback, or suggest topics, feel free to reach us through the Contact page.

Pageviews

Friday, March 24, 2017

NumPy - String Functions

The following functions are used to perform vectorized string operations for arrays of dtype numpy.string_ or numpy.unicode_. They are based on the standard string functions in Python's built-in library.

S.No Function & Description
1. add() Returns element-wise string concatenation for two arrays of str or Unicode
2. multiply() Returns the string with multiple concatenation, element-wise
3. center() Returns a copy of the given string with elements centered in a string of specified length
4. capitalize() Returns a copy of the string with only the first character capitalized
5. title() Returns the element-wise title cased version of the string or unicode
6. lower() Returns an array with the elements converted to lowercase
7. upper() Returns an array with the elements converted to uppercase
8. split() Returns a list of the words in the string, using separatordelimiter
9. splitlines() Returns a list of the lines in the element, breaking at the line boundaries
10. strip() Returns a copy with the leading and trailing characters removed
11. join() Returns a string which is the concatenation of the strings in the sequence
12. replace() Returns a copy of the string with all occurrences of substring replaced by the new string
13. decode() Calls str.decode element-wise
14. encode() Calls str.encode element-wise
These functions are defined in character array class (numpy.char). The older Numarray package contained chararray class. The above functions in numpy.char class are useful in performing vectorized string operations.

No comments:

Post a Comment