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 |
How to write a functioning volume for python?
Executing dml commands through python programs?
In Python what is slicing?
Explain whats flask?
What is the difference between range and xrange in python?
What are the local and global variables in python?
What is enumerate() explain its uses?
What does the map() function do?
If given the first and last names of bunch of employees how would you store it and what datatype?
What is iterable python?
How install pip python ubuntu?
What does none mean in python?