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 length of your largest python code? Can you please describe the project?
Write a small code to explain repr() in python ?
How many items are in a list python?
What is the best code you can write to swap two numbers?
How do we make forms in python?
Which the command you use to exit help window in python?
Mention five benefits of using python?
Is java or python better?
Is python faster than c#?
What is the function of a negative index?
What is the difference between del() and remove() methods of the list?
How do you count in python?