ENGLISH

Python for SAS Users

Book information

Publisher
Apress
Year
2019
ISBN
978-1-4842-5001-3
Language
english
Format
PDF
Filesize
7 MB (7057687 bytes)
Pages
437\437
Time added
2019-09-07 10:53:27

Description

Contents......Page 3 Intro......Page 8 1 Why Python......Page 11 Setting Up a Python Environment......Page 12 Anaconda3 Install Process for Windows......Page 13 Troubleshooting Python Installation for Windows......Page 19 Anaconda3 Install Process for Linux......Page 23 Executing a Python Script on Windows......Page 26 Line Continuation Symbol......Page 29 Executing a Python Script on Linux......Page 30 Integrated Development Environment (IDE) for Python......Page 31 Jupyter Notebook......Page 32 Jupyter Notebook for Linux......Page 34 Summary......Page 35 2 Python Types & Formatting......Page 36 Numerics......Page 37 Python Operators......Page 39 Boolean......Page 40 Comparison Operators......Page 41 IN/NOT IN......Page 46 AND/OR/NOT......Page 47 Numerical Precision......Page 49 Strings......Page 53 String Slicing......Page 56 Formatting Strings......Page 60 Formatting Integers......Page 63 Formatting Floats......Page 67 Datetime Formatting......Page 68 Summary......Page 72 3 pandas Library......Page 73 Column Types......Page 75 Series......Page 76 DataFrames......Page 81 DataFrame Validation......Page 83 DataFrame Inspection......Page 86 Missing Data......Page 91 Missing Value Detection......Page 94 isnull() Method......Page 98 Dropping Missing Values......Page 105 Imputation......Page 112 Summary......Page 117 4 Indexing & GroupBy......Page 118 Create Index......Page 119 Return Columns by Position......Page 121 Return Rows by Position......Page 124 Return Rows and Columns by Label......Page 126 Conditionals......Page 130 Updating......Page 133 Return Rows and Columns by Position......Page 135 MultiIndexing......Page 138 Basic Subsets with MultiIndexes......Page 144 Advanced Indexing with MultiIndexes......Page 148 Slicing Rows and Columns......Page 150 Conditional Slicing......Page 153 Cross Sections......Page 155 GroupBy......Page 157 Iteration Over Groups......Page 162 GroupBy Summary Statistics......Page 166 Filtering by Group......Page 168 Group by Column with Continuous Values......Page 169 Transform Based on Group Statistic......Page 172 Pivot......Page 175 Summary......Page 183 5 Data Management......Page 184 SAS Sort/Merge......Page 188 Inner Join......Page 191 Right Join......Page 193 Left Join......Page 196 Outer Join......Page 198 Right Join Unmatched Keys......Page 199 Left Join Unmatched Keys......Page 202 Outer Join Unmatched Keys......Page 204 Validate Keys......Page 207 Joining on an Index......Page 208 Join Key Column with an Index......Page 210 Update......Page 212 Conditional Update......Page 216 Concatenation......Page 220 Finding Column Min and Max Values......Page 229 Sorting......Page 230 Finding Duplicates......Page 234 Dropping Duplicates......Page 235 Sampling......Page 238 Convert Types......Page 241 Map Column Values......Page 242 Transpose......Page 244 Summary......Page 248 6 pandas Readers & Writers......Page 249 Reading .csv Files......Page 250 Date Handling in .csv Files......Page 256 Read .xls Files......Page 259 Write .csv Files......Page 266 Write .xls Files......Page 268 Read JSON......Page 270 Write JSON......Page 274 Read RDBMS Tables......Page 275 Query RDBMS Tables......Page 285 Read SAS Datasets......Page 292 Write RDBMS Tables......Page 295 Summary......Page 300 Date Object......Page 301 Return Today’s Date......Page 302 Date Manipulation......Page 305 Shifting Dates......Page 314 Date Formatting......Page 315 Dates to Strings......Page 319 Strings to Dates......Page 322 Time Object......Page 324 Time of Day......Page 327 Time Formatting......Page 329 Times to Strings......Page 330 Strings to Time......Page 332 Datetime Object......Page 335 Combining Times and Dates......Page 338 Returning Datetime Components......Page 340 Strings to Datetimes......Page 342 Datetimes to Strings......Page 345 Timedelta Object......Page 348 Time zone Object......Page 357 Naïve and Aware Datetimes......Page 358 pytz Library......Page 361 SAS Time zone......Page 369 Summary......Page 378 Install SASPy......Page 379 Set Up the sascfg_personal.py Configuration File......Page 380 Make SAS-Supplied .jar Files Available......Page 382 SASPy Examples......Page 384 Basic Data Wrangling......Page 386 Write DataFrame to SAS Dataset......Page 389 Define the Libref to Python......Page 390 Write the DataFrame to a SAS Dataset......Page 391 Execute SAS Code......Page 397 Write SAS Dataset to DataFrame......Page 399 Passing SAS Macro Variables to Python Objects......Page 403 Prompting......Page 406 Scripting SASPy......Page 407 Datetime Handling......Page 410 Summary......Page 415 Generating the Tickets DataFrame......Page 416 Many-to-Many Use Case......Page 419 Index......Page 428

Similar books

Session C11: Ancient Cultural Landscapes in South Europe – their Ecological Setting and Evolution, Session C22: Gardeners from South America, Session S04: Agro-Pastoralism and Early Metallurgy Sessions, Session WS29: The Idea of Enclosure in Recent Iberian Prehistory, Session C88: Rhytmes et causalites des dynamiques de l'anthropisation en Europe entre 6500 ET 500 BC: Hypotheses socio-culturelles et/ou climatiques: Proceedings of the XV UISPP World Congress (Lisbon 4-9 September 2006) / Actes du XV Congrès Mondial (Lisbonne 4-9 Septembre 2006) Vol.36

Session C11: Ancient Cultural Landscapes in South Europe – their Ecological Setting and Evolution, Session C22: Gardeners from South America, Session S04: Agro-Pastoralism and Early Metallurgy Sessions, Session WS29: The Idea of Enclosure in Recent Iberian Prehistory, Session C88: Rhytmes et causalites des dynamiques de l'anthropisation en Europe entre 6500 ET 500 BC: Hypotheses socio-culturelles et/ou climatiques: Proceedings of the XV UISPP World Congress (Lisbon 4-9 September 2006) / Actes du XV Congrès Mondial (Lisbonne 4-9 Septembre 2006) Vol.36

2010 · PDF

THE BRITISH ARMY IN INDIA: ITS PRESERVATION BY AN APPROPRIATE CLOTHING, HOUSING, LOCATING, RECREATIVE EMPLOYMENT, AND HOPEFUL ENCOURAGEMENT OF THE TROOPS. with AN APPENDIX ON INDIA : THE CLIMATE OP ITS HILLS ; THE DEVELOPMENT OF ITS RESODRCBS, INDUSTRY, AND ARTS ; THE ADMINISTRATION OF JUSTICE ; THE BLACK ACT ; THE PROGRESS OF CHRISTIANITY ; THE TRAFFIC IN OPIUM ; THE VALUE OF INDIA ; PERMANENT CAUSES OF DISAFFECTION, AND OF THE RECENT REBELLION ; THE TRADITIONARY POLICY; MISGOVERNMENT BY NATIVE RULERS ; ANNEXATIONS OF THEIR TERRITORY, ETC.

THE BRITISH ARMY IN INDIA: ITS PRESERVATION BY AN APPROPRIATE CLOTHING, HOUSING, LOCATING, RECREATIVE EMPLOYMENT, AND HOPEFUL ENCOURAGEMENT OF THE TROOPS. with AN APPENDIX ON INDIA : THE CLIMATE OP ITS HILLS ; THE DEVELOPMENT OF ITS RESODRCBS, INDUSTRY, AND ARTS ; THE ADMINISTRATION OF JUSTICE ; THE BLACK ACT ; THE PROGRESS OF CHRISTIANITY ; THE TRAFFIC IN OPIUM ; THE VALUE OF INDIA ; PERMANENT CAUSES OF DISAFFECTION, AND OF THE RECENT REBELLION ; THE TRADITIONARY POLICY; MISGOVERNMENT BY NATIVE RULERS ; ANNEXATIONS OF THEIR TERRITORY, ETC.

1858 · PDF

Idries Shah 27 Books Collection : A Perfumed Scorpion, A Veiled Gazelle, Caravan of Dreams, Darkest England, Destination Mecca, Evenings with Idries Shah, Knowing How to Know, Learning How to Learn, Letters and Lectures of Idries Shah, Neglected aspects of Sufi study, Observations, Oriental Magic, Reflections, Seeker after Truth, Special Illumination, Special Problems in the study of Sufi ideas, Sufi thought and action, Tales of the Dervishes, The Dermis Probe, The Elephant in the Dark, The Englishman Handbook, Idries Shah Antology, The Magic Monastery, The natives are restless, wisdom of the Idiots PDF.

Idries Shah 27 Books Collection : A Perfumed Scorpion, A Veiled Gazelle, Caravan of Dreams, Darkest England, Destination Mecca, Evenings with Idries Shah, Knowing How to Know, Learning How to Learn, Letters and Lectures of Idries Shah, Neglected aspects of Sufi study, Observations, Oriental Magic, Reflections, Seeker after Truth, Special Illumination, Special Problems in the study of Sufi ideas, Sufi thought and action, Tales of the Dervishes, The Dermis Probe, The Elephant in the Dark, The Englishman Handbook, Idries Shah Antology, The Magic Monastery, The natives are restless, wisdom of the Idiots PDF.

2022 · PDF

The travels of Capts. Lewis and Clarke from St. Louis, by way of the Missouri and Columbia rivers, to the Pacific ocean; performed in the years 1804, 1805 & 1806, by order of the government of the United States. Containing delineations of the manners, customs, religion, &c. of the Indians, comp. from various authentic sources, and original documents, and a summary of the Statistical view of the Indian nations, from the official communication of Meriwether Lewis. Illustrated with a map of the country, inhabited by the western tribes of Indians

The travels of Capts. Lewis and Clarke from St. Louis, by way of the Missouri and Columbia rivers, to the Pacific ocean; performed in the years 1804, 1805 & 1806, by order of the government of the United States. Containing delineations of the manners, customs, religion, &c. of the Indians, comp. from various authentic sources, and original documents, and a summary of the Statistical view of the Indian nations, from the official communication of Meriwether Lewis. Illustrated with a map of the country, inhabited by the western tribes of Indians

1809 · PDF

Professional Linux kernel architecture ''Wrox programmer to programmer''--Cover. - ''What you are reading right now is the result of an evolution over more than seven years: After two years of writing, the first edition was published in German by Carl Hanser Verlag in 2003. It then described kernel 2.6.0. The test was used as a basis for the low-level design documentation for the EAL4+ security evaluation of Red Hat Enterprise Linux 5, requiring to update it to kernel 2.6.18 (if the EAL acronym does not mean anything to you, then Wikipedia is once more your friend). Hewlett-Packard sponsored the translation into English and has, thankfully, granted the rights to publish the result. Updates to kernel 2.6.24 were then performed specifically for this book''--P. ix

Professional Linux kernel architecture ''Wrox programmer to programmer''--Cover. - ''What you are reading right now is the result of an evolution over more than seven years: After two years of writing, the first edition was published in German by Carl Hanser Verlag in 2003. It then described kernel 2.6.0. The test was used as a basis for the low-level design documentation for the EAL4+ security evaluation of Red Hat Enterprise Linux 5, requiring to update it to kernel 2.6.18 (if the EAL acronym does not mean anything to you, then Wikipedia is once more your friend). Hewlett-Packard sponsored the translation into English and has, thankfully, granted the rights to publish the result. Updates to kernel 2.6.24 were then performed specifically for this book''--P. ix

2008 · PDF