In NumPy, how will you read CSV data into an array?
Answers were Sorted based on User's Feedback
Answer / nashiinformaticssolutions
You can use `numpy.genfromtxt()` or `numpy.loadtxt()` to read CSV files into a NumPy array.
```python
import numpy as np
data = np.genfromtxt('file.csv', delimiter=',')
```
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / glibwaresoftsolutions
You can use `numpy.genfromtxt()` or `numpy.loadtxt()` to read CSV files into a NumPy array.
```python
import numpy as np
data = np.genfromtxt('file.csv', delimiter=',')
```
| Is This Answer Correct ? | 0 Yes | 0 No |
Define encapsulation in python?
Why do we need operator overloading?
How will you sort a list?
What is meta class in python?
What is anagram in python?
Can dictionary have a duplicate keys ?
Explain about pickling and unpickling?
What is the difference between old style and new style classes in python?
Python documentation is called?
Is python written in c?
What are the disadvantages of python?
How do I apply a method to a sequence of objects?