Imp Questions 1-1
Imp Questions 1-1
2. Explain the concept of datafication and why it's important in data science.
3. What are the key steps involved in the Data Science process?
4. How can ndarrays be created in NumPy? Illustrate different methods with examples.
5. Explain the following NumPy concepts:
i) ndarray slicing
ii) Boolean indexing
iii) Fancy indexing
6. Discuss the concept of "expressing conditional logic as array operations" in NumPy.
7. Illustrate the 'swap axes' method in NumPy by applying it to a three-dimensional array.
8. Explain the following pandas data structures:
i) Series
ii) Data Frame
iii) Index Objects
9. How does sorting and ranking works in pandas. Provide examples.
10. Describe the process of dropping entries from an axis in pandas.
11. Explain the role of the index in a Series and its importance in data alignment.
12. What is reindexing in pandas? How is it different from regular indexing?
13. Discuss the importance of summarizing and computing descriptive statistics in data
analysis.
14. How to perform reading and writing operations for text format data in CSV files?
Ans: To perform reading and writing operations in text format data using pandas in Python, we
commonly use functions like read_csv and to_csv for CSV (Comma-Separated Values) files.
Pandas provides the read_csv()function to read text data into a Data Frame from CSV files.
import pandas as pd
The to_csv() function is used to write DataFrame data to a CSV or text file.
Here, the delimiter is specified as \t (tab character) for a tab-delimited text file.