What you will learn in Pandas Workout: 200 exercises to make you a stronger data analyst
200 exercises to make you a stronger data analyst
Chapter by chapter
Concepts explained in this book
- data frameA pandas DataFrame is a two-dimensional labeled tabular data structure organized into rows and columns.
- loc accessorThe pandas .loc accessor selects rows and columns by labels or label-based slices, including Boolean masks.
- pandas indexA pandas Index is the axis-label structure that identifies and supports retrieval and alignment of values in Series and DataFrames.
- read_csvread_csv is a pandas function that parses a CSV file or compatible data source into a DataFrame.
- joinJoining combines rows from separate tabular data structures by matching values in a common key or index.
- SeriesA pandas Series is a one-dimensional labeled array that can hold values of a common or compatible data type.
- meanThe arithmetic average of a collection of numerical values, also serving as the central-location parameter of a normal distribution.
- scatter plotA scatter plot displays individual observations as points positioned according to two numerical variables.
- countcount is a pandas operation that returns the number of non-missing values in an object or along an axis.
- data groupinggroupby is a pandas operation that partitions data according to one or more keys so that grouped computations can be performed.
- boolean seriesA boolean series is a one-dimensional sequence whose elements are Boolean values.
- nanNaN is a floating-point marker representing a missing or undefined numeric value in pandas and NumPy.
- dropnadropna is a pandas method that removes missing values or rows and columns containing them according to specified criteria.
- correlationA statistical measure of the strength and direction of association between the number of wines submitted by a country and its mean score.
- multi-column indexA pandas MultiIndex is a hierarchical index formed from multiple levels of labels.
- histogramA chart that displays the distribution of numeric values by grouping them into intervals and showing each group's frequency.
- isinisin is a pandas method that tests whether each value belongs to a specified collection and returns Boolean results.
- value_countsA pandas method that counts the occurrences of each distinct value in a one-dimensional labeled data structure.
- CSVA delimited text file containing tabular data, typically encoded using the CSV format.
- pivot tableA pivot table is a tabular summary that organizes values by categories in rows and columns and aggregates values at their intersections.
- pandasAn open-source Python library for data analysis and manipulation, including labeled tabular data structures.
- timestampA timestamp object represents a specific date and time as a structured value supporting temporal calculations and comparisons.
- quantilesA quantile is a value that divides an ordered dataset so that a specified proportion of observations falls at or below it.
- boolean indexingBoolean-mask indexing selects data elements at positions where a Boolean condition is true.
- describeA pandas method that computes descriptive statistics for Series or DataFrame data.
- str.containsA pandas string-accessor method that tests each string value against a substring or regular expression and returns Boolean results.
- cutA pandas function that divides numeric values into intervals and optionally assigns labels to those intervals.
- sort_valuessort_values is a pandas method that returns an object ordered by the values of one or more columns or other labeled data elements.
- applyapply is a pandas method that applies a function to values or along an axis of a Series or DataFrame.
- corrcorr is a pandas DataFrame method that computes pairwise correlations among numeric columns.
- ilocThe pandas iloc accessor selects Series or DataFrame elements by integer position or position-based slices.
- object data typeAn object dtype is a pandas or NumPy-compatible data type used for values stored as generic Python objects, often strings.
- sorting algorithmSorting orders tabular records according to the values of an index or one or more columns.
- parse_dates parameterparse_dates is a pandas read_csv parameter that identifies input columns whose values should be parsed as dates or datetimes.
- grouped dataframeA pandas DataFrameGroupBy is the pandas object representing a DataFrame partitioned into groups and providing grouped operations.
- box-and-whisker plotA boxplot, or box-and-whisker plot, graphically summarizes a numeric distribution using quartiles, a median, whiskers, and possible outliers.
- set_indexThe pandas method that replaces an object's index with values from one or more specified columns or arrays.
- MultiIndex.from_tuplesMultiIndex.from_tuples is a pandas constructor that creates a hierarchical index from a sequence of tuples.
- pie chartA pie chart displays parts of a whole as sectors whose angular sizes represent category proportions.
- pandas datetime accessorA pandas accessor that exposes datetime properties and operations for datetime-like Series and Index objects.
- bar chartA bar plot represents categorical values with rectangular bars whose lengths are proportional to the represented quantities.
- pandas.evalpandas eval is an expression-evaluation API that computes conditions or assignments involving pandas objects and their columns.
- transpositiontranspose is a pandas operation that exchanges the rows and columns of a Series or DataFrame.
- query methodA pandas DataFrame method that filters rows by evaluating a Boolean expression against the DataFrame's columns.
- astypeA pandas or NumPy method that returns values cast to a specified data type.
- rsplit methodstr.rsplit is a Python string method that splits a string from the right using a specified separator and maximum number of splits.
- timeittimeit is a Python standard-library module for measuring the execution time of small code snippets.
- drop_duplicatesA pandas method that removes duplicate rows or values according to the selected subset and retention rules.
- time seriesA time series is a pandas data structure whose index contains timestamp values ordered or organized by time.
- standard deviationA measure of the spread of numerical values around their mean, and a scale parameter of a normal distribution.
- slice objectA slice is Python sequence syntax or an object specifying a range of positional elements to retrieve.
- medianThe median is the middle value of an ordered set of numerical values, with averaging of the two middle values when the set has even size.
- seabornSeaborn is a Python statistical data-visualization library that provides a high-level interface for drawing attractive and informative graphics.
- explodeA pandas operation that expands list-like values in a Series or DataFrame into separate rows while retaining the original index labels.
- stringAn immutable Python sequence of Unicode characters.
- missing valueA missing or null value is an absent or unavailable observation or field in a dataset.
- assignThe pandas DataFrame.assign method returns a new DataFrame with columns created or replaced from keyword arguments without modifying the original DataFrame.
- pandas.DataFrame.resample()A pandas operation that groups time-indexed data into regular temporal intervals and applies aggregation or other computations to each interval.
- MapA mutable Python mapping from unique keys to values.
- column selectorA selection specification that identifies which data-frame columns an indexer should return.
- line plotA chart that represents observations as points connected by line segments, typically to show change across an ordered dimension.
- fillnaA pandas method that replaces missing values with a specified value or computed replacement.
- memory usageMemory usage is the amount of computer memory occupied by a data structure or computation.
- timedeltaA timedelta is a duration value representing a difference between dates or times and supporting temporal arithmetic.
- MatplotlibMatplotlib is a Python library for creating static, animated, and interactive data visualizations.
- str.isdigitstr.isdigit is a string-accessor method that returns whether each string consists solely of digit characters.
- data cleaningData cleaning is the process of detecting, correcting, removing, or transforming inaccurate, incomplete, or inconsistent data.
- catplotcatplot is a Seaborn figure-level function for visualizing relationships involving categorical variables.
- relplotrelplot is a Seaborn function for visualizing relationships between variables, including numeric variables with scatter or line plots.
- pandas.concatA pandas function that concatenates pandas objects along a specified axis and returns a combined object.
- str.lowerA pandas string-accessor method that converts each string value in a Series to lowercase.
- trimA pandas string-accessor method that removes specified characters from the beginning and end of each string.
- pct_changepct_change is a pandas method that computes fractional or percentage changes between successive values along an axis.
- regular expressionA regular expression is a pattern notation for describing and matching sets of text strings.
- to_datetimepd.to_datetime is a pandas function that converts date and time representations into Timestamp values or datetime-like Series.
- FeatherFeather is a binary columnar file format for efficiently storing and exchanging tabular data.
- PyArrowPyArrow is a Python library providing access to Apache Arrow columnar data structures, memory formats, and related tools.
- dummy indicatorA dummy column is a binary indicator column representing whether each record belongs to a particular category.
- %timeit magicA timeit magic command is a Jupyter/IPython command that repeatedly executes code and reports its execution time.
- resamplingResampling is the process of changing the temporal frequency of time-indexed data, commonly by aggregating observations into new time periods.
- interquartile rangeThe interquartile range is the difference between the 75th-percentile and 25th-percentile values of an ordered dataset.
- broadcastingBroadcasting is the automatic expansion or alignment of compatible operands so an operation can combine data with different shapes or scalar values.
- normal distributionA probability distribution whose values are symmetrically concentrated around a mean with spread determined by its standard deviation.
- varianceThe average of squared deviations from the mean before taking a square root.
- isnullisnull is a pandas method that returns Boolean values indicating whether each Series or DataFrame value is null or missing.
- floating-point arithmeticFloating-point arithmetic performs numerical calculations using finite-precision representations that can produce small rounding discrepancies.
- anomalyAn outlier is an observation unusually far below or above the central range of a dataset according to a chosen criterion.
- str.get_dummiesA pandas string-accessor operation that converts delimiter-separated categorical values into binary indicator columns.
- SettingWithCopyWarningSettingWithCopyWarning is a pandas warning indicating that an assignment may be modifying a view or copied subset rather than the intended original object.
- five-number summaryA five-number summary consists of the minimum, first quartile, median, third quartile, and maximum of a numeric distribution.
- plot.boxplot.box is a pandas plotting method that creates box plots from Series or DataFrame data.
- columnA column is a labeled vertical sequence of values in a pandas data frame, represented as a Series.
- tail methodThe pandas tail method returns the last specified number of elements or rows from an object.
- stacked bar chartA bar plot in which multiple component values are stacked within each bar to show a total and its parts.
- tuple unpackingTuple unpacking assigns the elements of an iterable to multiple variables in one assignment.
- scatter matrix plotA scatter matrix is a grid of scatter plots showing pairwise relationships among multiple numeric variables, typically with univariate plots on the diagonal.
- fancy indexingFancy indexing selects multiple positions or labels by supplying an index collection rather than a single index.
- idxmaxidxmax is a pandas operation that returns the index label associated with the maximum value.
- default_rngdefault_rng is a NumPy function that constructs a modern pseudorandom number generator.
- integersintegers is a NumPy random-generator method that returns an array of pseudorandom integers in a specified range and size.
- NumPy arrayA NumPy array is a fixed-type multidimensional numerical array provided by NumPy.
- NumPyNumPy is a Python library providing multidimensional arrays and numerical operations.
- random seedA random seed is an initial value that determines the starting state of a pseudorandom-number generator.
- scalarA scalar is a single numeric or other atomic value, as opposed to an array or labeled collection.
- day_of_week attributeThe pandas datetime attribute that returns the weekday as an integer from Monday zero through Sunday six.
- delimiterA field separator is a character or string that delimits adjacent fields in a structured text record.
- str.sliceSeries.str.slice is a pandas string operation that extracts character ranges from each string value in a Series.
- causationCausation is a relationship in which a change in one factor produces a change in another factor.
- CategoricalDtypeCategoricalDtype is a pandas type specification that defines the categories and ordering for categorical data.
- sort_indexsort_index is a pandas method that returns an object whose rows or elements are ordered by index values.
- read_excelread_excel is a pandas function that reads spreadsheet files into a DataFrame.
- plot.barA pandas plotting method that creates a bar plot from tabular or grouped data.
- plot.histA pandas plotting method that creates a histogram from numeric data.
- threshThe pandas thresh parameter specifies the minimum number of non-missing values required for an object or row to be retained.
- float64float64 is a 64-bit floating-point data type commonly used as the default numeric precision for pandas columns.
- infoThe pandas DataFrame info method displays concise information about the object's index, columns, dtypes, null counts, and memory usage.
- inner joinA join operation that retains only index or key values present in every input table.
- reset_indexreset_index is a pandas method that replaces an object's index with a default integer index and can optionally preserve the old index as a column.
- string methodOperations provided by the Python string type for inspecting, transforming, and manipulating textual values.
- textTextual data consists of character-based values representing words, phrases, or other written content rather than numeric quantities.
- don't repeat yourself principleDon't repeat yourself is a software design principle that avoids duplicating logic or equivalent code.
- normalizationNormalization is the organization of data into separate related structures so that each piece of information is stored only once.
- headerA header is a file row containing names or other metadata that describe tabular columns.
- datetime indexA pandas index whose labels are datetime values and which supports time-based selection and slicing.
- is_quarter_endA pandas datetime property that returns Boolean values indicating whether datetime labels fall on the last day of a calendar quarter.
- pandas StringDtypeA pandas extension dtype for string-valued data that supports pandas missing-value semantics without using the generic object dtype.
- displotdisplot is a Seaborn function for visualizing the distribution of observations.
- regplotregplot is a Seaborn function for visualizing data together with a fitted regression model.
- header parameterThe header parameter specifies which input line contains column names or indicates that the input has no header.
- index levelAn index level is one component of a hierarchical pandas index, containing labels for one dimension of row identification.
- np.int64np.int64 is NumPy's signed 64-bit integer scalar and data type.
- size attributeThe pandas size attribute reports the total number of values in a Series or DataFrame, including missing values.
- axis parameterAn axis parameter specifies which pandas dimension, such as rows or columns, an operation should use.
- dotted notationDot notation is attribute-access syntax that can retrieve a pandas column when its label is a valid Python identifier and does not conflict with an attribute.
- pandas Series.idxminidxmin is a pandas operation that returns the index label associated with the minimum value.
- dtypes methodThe dtypes method reports the data type of each column or value collection in a pandas object.
- pandas to_numeric functionto_numeric is a pandas function that converts values to numeric data, optionally coercing unconvertible values to missing values.
- left outer joinA left join retains rows driven by the left input and attaches matching rows from the right input when available.
- JSONJSON is a text-based data-interchange format representing structured values such as arrays, objects, strings, numbers, and Boolean values.
- read_jsonread_json is a pandas function that parses JSON data into a DataFrame or related pandas object.
- standardValue standardization is the transformation of inconsistent categorical labels into a consistent set of labels.
- z-scoreA z-score is the number of standard deviations by which a value differs from the mean of its data set.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.
