COMPSCI C8 Chapter 5: Computational & Inferential Thinking: Tables

35 views2 pages
2 Mar 2017
School
Professor

Document Summary

Tables: a fundamental object for representing data sets that can be viewed in two ways: Tables: a sequence of named columns that each describe a single aspect of all entries in a data set, a sequence of rows that each contain all information about a single entry in a data set. * in order to use tables, import the module datascience. Use the table() function to create an empty table. Use the with_column and with_columns functions to add labelled columns, for example: Python can read data into a table, e. g. using csv (comma separated values). Use the read_table function to use this data. Othercolumntitle,) returns an array of information in the named column returns item at index named index formats the data in the column named creates a new table that only contains the named columns. can use either column titles. Or indices. results in the creation of a new table drop( columntitle","othercolu mntitle") show(0) sort( columntitle", descending =

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents

Related Questions