CSE20289 Study Guide - Midterm Guide: Numpy, Apache Spark, Json

50 views2 pages

Document Summary

Exam 1 study guide: array like features of pandas serires, slicing with explicit and implicit indexes, slicing is pretty straight forward with numpy arrays because of their implicit integer based indexes. It gets a little bit more complicated with series objects because the explicit index isn"t necessarily integer based. Just like normal slice, you can specify two elements that you want to be the start/end of what is returned. The difference here is that you can specify the actual index element names/keys instead of numbers: difference: Series objects with non-integer based explicit indexes: so can just do url_series[:10] to get the first ten items in the series based on the implicit index, slicing (explicit index, slicing affects affects rows, not columns in a dataframe. Series it checks if it is present in the index. Whereas for a dataframe, it check if it is present in the columns: ufunc arithmatic with index preservation:

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

Related Documents