October 2019
Beginner to intermediate
674 pages
16h 43m
English
A DataFrame is the most commonly used data structure in pandas. The constructor accepts many different types of arguments:
Row label indexes and column labels can be specified along with the data. If they're not specified, they will be generated from the input data in an intuitive fashion, for example, from the keys of dict (in the case of column labels) or by using np.range(n) in the case of row labels, where n corresponds to the number of rows.
A DataFrame can be created from a variety of sources as discussed in the following subsections.
Read now
Unlock full access