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 are static methods for?
What is the syntax for dictionary comprehension in python?
Mention what is flask-wtf and what are their features?
How to write a functioning volume for python?
What is the difference between old style and new style classes in python?
What are the applications of python?
What is pandas?
What good is recursion?
Is there any way to kill a thread in python?
What is the best flask or Django
Can you hack with python?
What is the difference between `list` and `tuple` in Python?