A DataFrame in Pandas is a 2-dimensional, labeled data structure which is similar to a SQL Table or a spreadsheet with columns and rows. Each column of a DataFrame can contain different data types.
Pandas DataFrame syntax includes “loc” and “iloc” functions, eg., data_frame.loc[ ] and data_frame.iloc[ ]. Both functions are used to access rows and/or columns, where “loc” is for access by labels and “iloc” is for access by position, i.e. numerical indices.
This video shows how to slice a DataFrame in Pandas and includes the following steps:
Ensure Python is installed (or install ActivePython)
Import a dataset
Create a DataFrame
Slice the DataFrame
For the entire tutorial, head to: https://www.activestate.com/resources...
Python For Data Science
Pre-bundled with the most important packages Data Scientists need, ActivePython is pre-compiled so you and your team don’t have to waste time configuring the open source distribution. You can focus on what’s important–spending more time building algorithms and predictive models against your big data sources, and less time on system configuration: https://www.activestate.com/products/...