Python Libraries and Modules
Python Libraries and Modules - Important Points
11. | Which library in Python is used for data visualization? |
---|
A. Matplotlib
B. Seaborn
C. Plotly
D. All of the
View Answer Discuss Work SpaceAnswer: option d
Explanation:
There are several libraries used for data visualization in Python, including Matplotlib, Seaborn, and Plotly. All of these libraries provide a range of functions for creating various types of plots and visualizations.
12. | Which module in Python is used for working with databases? |
---|
A. sqlite3
B. psycopg2
C. mysql-connector
D. all of the above
View Answer Discuss Work SpaceAnswer: option d
Explanation:
Python provides modules for working with databases, including sqlite3, psycopg2, and mysql-connector. These modules provide functions for connecting to a database, executing SQL queries, and fetching results.
13. | Which library in Python is used for natural language processing? |
---|
A. NLTK
B. Spacy
C. Gensim
D. All of the above
View Answer Discuss Work SpaceAnswer: option d
Explanation:
There are several libraries used for natural language processing in Python, including NLTK, Spacy, and Gensim. All of these libraries provide a range of functions for working with text data, including tokenization, part-of-speech tagging, and named entity recognition.
14. | Which module in Python is used for working with images? |
---|
A. Pillow
B. OpenCV
C. Matplotlib
D. all of the above
View Answer Discuss Work SpaceAnswer: option d
Explanation:
Python provides modules for working with images, including Pillow, OpenCV, and Matplotlib. These modules provide functions for reading, writing, and manipulating image files in various formats.
15. | Which library in Python is used for data manipulation and analysis? |
---|
A. Pandas
B. NumPy
C. Scipy
D. Statsmodels
View Answer Discuss Work SpaceAnswer: option a
Explanation:
Pandas is a library used for data manipulation and analysis in Python. It provides data structures and functions for manipulating and analyzing tabular data, including support for data cleaning, transformation, and aggregation.