{ "cells": [ { "cell_type": "markdown", "id": "1a057f29-e7ec-4732-8b32-3969fc0b95e7", "metadata": {}, "source": [ "# Introduction to Pandas\n", "\n", "
Overview
\n", "\n", "Questions:\n", "\n", "* How do I import a library?\n", "\n", "* How do I analyze tabular data using Python?\n", "\n", "\n", "Objectives:\n", "\n", "* Use pandas to examine and analyze data.\n", "\n", "Python Documentation
\n", "Most popular Python libraries have very good online documentation. \n", "You can find the pandas documentation by googling \"pandas docs\".\n", "You will be able to find the same help message you get for `read_csv` as well as tutorials and other types of documentation.\n", "\n", "1. [Pandas Documentation](https://pandas.pydata.org/docs/)\n", "2. [`read_csv` documentation](https://pandas.pydata.org/docs/reference/api/pandas.read_csv.html)\n", "Methods vs Functions
\n", "In this lesson, we use the syntax `variable.SOMETHING` often.\n", "When we do this, we are accessing special information or functions that act on variables. If the syntax is `variable.SOMETHING()`, with parenthesis it is a \"method\", or function that acts on the variable. For example, if variable is a list, you might use the method variable.append(item) to add an item to the end of the list.\n", "\n", "If it doesn't have parenthesis, it is an \"attribute\" or data associated with the variable.\n", "Exercise
\n", "\n", "How would you get the `ElectronConfiguration` column?\n", "\n", "How would you get the value in row index 10 of the `ElectronConfiguration` column?\n", "Exercise
\n", "\n", "Create a filter for elements having a melting point below 100.\n", "Exercise
\n", "\n", "Group elements by GroupBlock and calculate statistics.\n", "\n", "After grouping, select the electronegativity data. Are the trends what you would expect?\n", "\n", "