In this sample the point coordinate file we will read into a list in which the X, Y and Z coordinates can be referenced by the index position in a list. The csv module in Python can be used to quickly parse CSV files into different data structures. Note that this CSV has a header titles on the first row: RoomID,Floor,Use,Square Footage,Capacity,Price Or a CSV might contain building data, for instance room and usage information in a database type format. The CSV format is one of the most flexible and easiest format to read.Īs an example, a CSV file might be used to store point locations in their X, Y, Z coordinate values: 0.58,-3.7,0 Use Python to read and write comma-delimited files.ĬSV (comma separated values ) files are commonly used to store and retrieve many different types of data.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |