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 |
Explain the use of *args, **kwargs?
How to write a functioning volume for python?
What is pip and pip freeze commands will do?
What are operators?
What is the use of dir() function?
Write a program to find the given string in the line?
Why do we want to use break statement in while-loop?
How to compare two list?
What is arange function in python?
Where do you use python programming? Can you describe in detail?
How do you break in python?
Why python is best for data science?