Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

In NumPy, how will you read CSV data into an array?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Tell me how memcached should not be used in your python project?

887


What is the use of metaclass in python?

920


How to run a Python CGI script in Wamp?

900


What is enumerate python?

943


What is the iterator protocol?

963


What is anonymous function or lambda function?

876


What do you mean by overriding methods?

1000


Where will you use while rather than for?

1213


Is numpy faster than pandas?

891


Do you know what is the key difference between a list and the tuple?

941


How you can convert a number to a string?

987


How python does compile-time and run-time code checking?

1130


What is hierarchical inheritance?

953


What companies use python?

921


Why is not all memory freed when Python exits?

916