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 |
Get the cartesian product of a series of lists?
Which package is the fastest form of python?
What is *args and **kwargs?
What is the use of sessions in Django?
What are the commands that are used to copy an object in Python?
What is <yield> keyword in python?
Explain what is decorator?
Name the function which helps to change the files permission
what's wrong with import all?
How do you insert a line break in python?
Is javascript better than python?
What is called loop?