<jupyter_start><jupyter_text>Indexing, Slicing and Subsetting DataFrames in PythonIn lesson 01, we read a CSV into a python Pandas DataFrame.  We learned how tosave the DataFrame to a named object, how to perform basic math on the data, howto calculate summary statistics and how to create plots of the data. In thislesson, we will explore ways to access different parts of the data using indexing,slicing and subsetting. Learning Objectives*  Learn about 0-based indexing in Python.*  Learn about numeric vs. label based indexes.*  Learn how to select subsets of data from a DataFrame using Slicing and   Indexing methods.*  Understand what a boolean object is and how it can be used to "mask" or   identify particular sets of values within another object. Making Sure Our Data Are LoadedWe will continue to use the surveys dataset that we worked with in the lastexercise. Let's reopen it:```python first make sure pandas is loadedimport pandas as pd read in the survey csvsurveys_df = pd.read_csv("https://ndownloader.figshare.com/files/2292172")```<jupyter_code>import pandas as pd
surveys_df = pd.read_csv("https://ndownloader.figshare.com/files/2292172")<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.05550883095037847, 'fraction_numerical': 0.014297729184188394, 'mean_word_length': 5.071428571428571, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '515296', 'license': 'CC-BY-3.0', 'n_tokens_mistral': 341, 'n_tokens_neox': 314, 'n_words': 161, 'path': 'notebooks/02-index-slice-subset.ipynb', 'repo_name': 'Nemilica/project', 'size': '1189'}