How many Python libraries are there

IT’ S THE LIBRARIES!

Throughout the article, we focus on using existing libraries to help you avoid “reinventing the wheel,” thus leveraging your program­development efforts. In this article, you’ll use a broad range of Python standard libraries, data­science libraries and third­party libraries.

Python Standard Library

The Python Standard Library provides rich capabilities for text/binary data processing, mathematics, functional­style programming, file/directory access, data persistence, data compression/archiving, cryptography, operating­system services, concurrent programming, interprocess communication, networking protocols.

Some of the Python Standard Library modules we use in the article

  1. collections—Additional data structures beyond lists, tuples, dictionaries and sets.
  2. csv—Processing comma­separated value files.
  3. datetime, time—Date and time manipulations.
  4. decimal—Fixed­point and floating­-point arithmetic, including monetary calculations.
  5. math—Common math constants and operations.
  6. os—Interacting with the operating system.
  7. queue—First­in, first­out data structure.
  8. random—Pseudorandom numbers.
  9. re—Regular expressions for pattern matching.
  10. sqlite3—SQLite relational database access.
  11. string—String processing.
  12. sys—Command­line argument processing; standard input, standard output and standard error streams.
  13. timeit—Performance analysis.

Data-Science Libraries

Python has an enormous and rapidly growing community of open­source developers in many fields. One of the biggest reasons for Python’s popularity is the extraordinary range of open-source libraries developed by its open­source community. Hands­on data science, key data­science libraries and more. The following table lists various popular data-science libraries. For a nice summary of Python visualization libraries see:

http://pyviz.org/.

Popular Python libraries used in data science

Scientific Computing and Statistics

  1. NumPy (Numerical Python)—Python does not have a built­-in array data structure. It uses lists, which are convenient but relatively slow. NumPy provides the high-performance nd-array data structure to represent lists and matrices, and it also provides routines for processing such data structures.
  2. SciPy (Scientific Python)—Built on NumPy, SciPy adds routines for scientific processing, such as integrals, differential equations, additional matrix processing and more. scipy.org controls SciPy and NumPy.
Data Manipulation and Analysis

  1. Pandas—An extremely popular library for data manipulations. Pandas makes abundant use of NumPy’s ndarray.
Visualization

  1. Matplotlib—A highly customizable visualization and plotting library. Supported plots include regular, scatter, bar, contour, pie, quiver, grid, polar axis, 3D and text.
  2. Seaborn—A higher­level visualization library built on Matplotlib. Seaborn adds a nicer look­and­feel, additional visualizations and enables you to create visualizations with less code.
Machine Learning, Deep Learning and Reinforcement Learning

  1. scikit­-learn—Top machine-­learning library. Machine learning is a subset of AI. Deep learning is a subset of machine learning that focuses on neural networks.
  2. Keras—One of the easiest to use deep­learning libraries. Keras runs on top of Keras—One of the easiest to use deep learning libraries.
  3. Keras runs on top of TensorFlow (Google), CNTK (Microsoft’s cognitive toolkit for deep learning) or Theano (UniversitĂ© de MontrĂ©al).
  4. TensorFlow—From Google, this is the most widely used deep learning library.Tensor-Flow works with GPUs (graphics processing units) or Google’s custom TPUs (Tensor processing units) for performance. You’ll use the version of Keras that’s built into TensorFlow.
  5. OpenAI Gym—A library and environment for developing, testing and comparing reinforcement-­learning algorithms.
Natural Language Processing (NLP)

  1. NLTK (Natural Language Toolkit)—Used for natural language processing (NLP) tasks.
  2. TextBlob—An object­oriented NLP text­processing library built on the NLTK and pattern NLP libraries. TextBlob simplifies many NLP tasks.
  3. Gensim—Similar to NLTK.

*

Post a Comment (0)
Previous Post Next Post