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 |
What is the use of negative indices?
What is the sleeping time of giraffe?
What is python keyword?
How to create dynamic array in python?
What is flask used for in python?
Explain what is namespace in python?
Why is __ init __ used in python?
How do you open an already existing file and add content to it?
Is compiled python faster?
What is pytables?
What is the scipy?
Explain the //, %, and ** operators in python?