Data Science Essentials in Python by Dmitry Zinoviev

Data Science Essentials in Python by Dmitry Zinoviev

Author:Dmitry Zinoviev [Dmitry Zinoviev]
Language: eng
Format: epub
Tags: Python
Publisher: Pragmatic Bookshelf
Published: 2016-08-09T21:00:00+00:00


The NIAAA report is such an excellent source of data that I included a preprocessed copy of it as a “code” item for you to explore. But remember: do not drink and do data science!

You can create a simple frame with column names and an index by passing a list of row tuples or other sequences of the same length to the constructor. (Here I used a pandas CSV reader from Unit 37, Taming Pandas File I/O to create the full frame alco and then selected a one-year timespan.)

alco2009 = pd.DataFrame([(1.20, 0.22, 0.58),

(1.31, 0.54, 1.16),

(1.19, 0.38, 0.74),

more rows],

columns=("Beer", "Wine", "Spirits"),

index=("Alabama", "Alaska", more states))



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.