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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how python does compile-time and run-time code checking?

838


What is map?

788


What is egg and wheel in python?

847


What are literals in python?

918


Is there any equivalent to scanf() or sscanf()?

921


Can a constructor be static?

762


Will python support object oriented?

813


How do you insert a line break in python?

816


What is @property in python?

752


Which is faster c++ or python?

762


Does python 3.7 come with pip?

814


What is numpy shape?

776


Which is better Python or ruby?

850


What is the use of ‘self’ keyword in python?

838


How do you create a database in python?

920