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

What does ** (double star/asterisk) and * (star/asterisk) do for parameters?

939


List down some of the pdb commands for debugging python programs?

869


How do we execute python?

919


Which website is best for learning python?

929


What is python enumerate?

992


What is shell scripting in python?

865


Explain the ternary operator in python?

894


Are tuples mutable?

907


How would you implement inheritance in python?

990


What are the local and global variables in python?

1016


How to generate all permutations of a list in python?

987


Describe about the libraries of python?

953


What is a model in python?

919


How do you sort a dataframe in descending order?

894


Explain how can you access a module written in python from c?

946