Key Python libraries
In addition to AI/ML frameworks, there are also many Python libraries that will make the experience of building your GenAI application easier. Whether you require assistance with data cleansing, formatting, or transformation, there are likely half a dozen potential Python libraries to solve every problem. The following subsections list some favorites and explain how they can assist you during your GenAI journey.
For this book, you can broadly divide these libraries into three categories:
- General-purpose scientific libraries such as pandas, NumPy, and scikit-learn
- MongoDB-specific libraries such as PyMongoArrow
- Deep learning frameworks such as PyTorch and TensorFlow
The rest of this section covers one relevant and popular library from each of these categories
pandas
The pandas library is a powerful and flexible open source data manipulation and analysis library for Python. It provides data structures such as DataFrames and Series...