Working with Excel files in Python by Clinton W. Brownley
Author:Clinton W. Brownley
Language: eng
Format: epub
Publisher: O'Reilly Media, Inc.
Published: 2018-09-25T16:00:00+00:00
python 8excel_column_by_name.py sales_2013.xlsx output_files\8output.xls
You can then open the output file, 8output.xls, to review the results.
Pandas
To select specific columns based on column headings with pandas, you can list the names of the columns, as strings, inside square brackets after the name of the DataFrame. Alternatively, you can use the loc function. Again, if you use the loc function, then you need to add a colon and a comma before the list of column headings to indicate that you want to retain all of the rows for these columns.
To select columns based on column headings with pandas, type the following code into a text editor and save the file as pandas_column_by_name.py:
Download
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.
Nudge - Improving Decisions about Health, Wealth, and Happiness by Thaler Sunstein(7203)
Deep Work by Cal Newport(6493)
Principles: Life and Work by Ray Dalio(5879)
The Doodle Revolution by Sunni Brown(4477)
Factfulness: Ten Reasons We're Wrong About the World – and Why Things Are Better Than You Think by Hans Rosling(4460)
Eat That Frog! by Brian Tracy(4105)
Thinking in Bets by Annie Duke(3973)
Hyperfocus by Chris Bailey(3875)
Visual Intelligence by Amy E. Herman(3607)
Writing Your Dissertation in Fifteen Minutes a Day by Joan Bolker(3549)
How to Win Friends and Influence People in the Digital Age by Dale Carnegie & Associates(3339)
Ogilvy on Advertising by David Ogilvy(3292)
Hidden Persuasion: 33 psychological influence techniques in advertising by Marc Andrews & Matthijs van Leeuwen & Rick van Baaren(3270)
How to win friends and influence people by Dale Carnegie(3245)
The Pixar Touch by David A. Price(3184)
Schaum's Quick Guide to Writing Great Short Stories by Margaret Lucke(3165)
Deep Work: Rules for Focused Success in a Distracted World by Cal Newport(2936)
Work Clean by Dan Charnas(2872)
The Slow Fix: Solve Problems, Work Smarter, and Live Better In a World Addicted to Speed by Carl Honore(2821)
