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 |
Does python have static classes?
How to terminate a python subprocess launched with shell=true?
What is the method does join() in python belong?
Can python handle big data?
Why python is fast?
Tell me what is the difference between xrange and range?
What does the meaning of slicing in python?
What are tuples in python?
How can you access the latest five entries of a DataFrame?
What is a raw string in python?
How many types of operators python has?
What super does in python?