matplotlib Part 29 – Wireframes and Surface Plots
Wireframes and Surface Plots Today we’ll be talking about wireframe and surface plots. We’ll be using our example from the… Read More »matplotlib Part 29 – Wireframes and Surface Plots
Wireframes and Surface Plots Today we’ll be talking about wireframe and surface plots. We’ll be using our example from the… Read More »matplotlib Part 29 – Wireframes and Surface Plots
3D Contour Plots Today we’ll be plotting contours in 3D. To this end we need the contour method. This method… Read More »matplotlib Part 28 – 3D Contour Plots
3D Points and Lines Now that you know what 3D projection is, it’s time to actually plot something. Let’s start… Read More »matplotlib Part 27 – 3D Points and Lines
Axes3D and 3D Projection 2D plots are great and in most cases they’re all you need. But if you need… Read More »matplotlib Part 26 – Axes3D and 3D Projection
The Colorbar for Scatter Plots Some time ago we were talking about scatter plots. In the previous article we were… Read More »matplotlib Part 25 – The Colorbar for Scatter Plots
Colorbars In the preceding articles we were talking about colormap plots and contour plots. We know that the colors represent… Read More »matplotlib Part 24 – Colorbars
Contour Plots In the previous article we were talking about color maps. Today we’ll be talking about contour maps, which… Read More »matplotlib Part 23 – Contour Plots
Colormap Plots In this article we’ll be talking about colormap plots. These are used to represent three-dimensional data in 2D.… Read More »matplotlib Part 22 – Colormap Plots
Errorbars In this article we’ll be talking about errorbars. We use them to add information about possible errors or uncertainties.… Read More »matplotlib Part 21 – Errorbars
2D Histograms In the previous article we were talking about histograms. Today we’ll be talking about two-dimensional histograms, which we… Read More »matplotlib Part 20 – 2D Histograms
Histograms In this article we’ll have a look at histograms, binnings and density plots. Let’s create a simple histogram using… Read More »matplotlib Part 19 – Histograms
Scatter Plots with the scatter Method In the previous article we were using the plot method to create scatter plots.… Read More »matplotlib Part 18 – Scatter Plots with the scatter Method
Scatter Plots with the plot Method So far we’ve been only using line plots. But there’s a great variety of… Read More »matplotlib Part 17 – Scatter Plots with the plot Method
The Subplot2grid Layout Manager Most of the time we’ve been creating figures and axes using the plt.subplots method. Today let’s… Read More »matplotlib Part 16 – The Subplot2grid Layout Manager
DATASET CONCATENATION We can concatenate Series and DataFrame objects using the pd.concat method. Here’s a simple example of concatenation. Let’s… Read More »pandas Part 24 – Dataset Concatenation
DATA AGGREGATION ON MULTIINDICES We can aggregate hierarchically indexed data using common aggragation methods like mean, sum, min or max.… Read More »pandas Part 23 – Data Aggragation on MultiIndices
Insets You can create axes that sit inside other axes. You can come across examples of axes that display magnified… Read More »matplotlib Part 15 – Insets
Twin Axes Sometimes you may want to display two independent axes at the same time, like for example when you… Read More »matplotlib Part 14 – Twin Axes
SETTING AND RESETTING INDICES In the previous part of the Pandas series we were talking about sorting indices. Today we’ll… Read More »pandas Part 22 – Setting and Resetting Indices
In the previous parts of the series we created a bar chart, a line chart and a pie chart. There… Read More »openpyxl Part 21 – 3D Charts
SORTING MULTIINDICES Sorting multi-indices is important because many slicing operations only work on sorted data. Let’s create a multi-indexed Series… Read More »pandas Part 21 – Sorting MultiIndices
Sometimes you may want to share axis scale across multiple axes. Let’s have a look at the following example: In [3]:… Read More »matplotlib Part 13 – Sharing Axis Scale
In the previous part we created a line chart. In this part we’ll create pie charts. We’ll be using the… Read More »openpyxl Part 20 – Pie Charts
Grids In the previous part of the Matplotlib series we were talking about axis ticks. Today’s topic is closely related… Read More »matplotlib Part 12 – Grids
INDEXING AND SLICING MULTIPLY INDEXED DATAFRAMES In the previous part of the Pandas series we were talking about indexing and… Read More »pandas Part 20 – Indexing and Slicing Multiply Indexed DataFrames
In the previous part of the Matplotlib series we were talking about text annotations. In this part we’ll be talking… Read More »matplotlib Part 11 – Axis Ticks
Let’s talk about line charts. In the previous part of the openpyxl series we created a new workbook with some… Read More »openpyxl Part 19 – Line Charts
In the previous part of the Matplotlib series we were talking about the legend. Today we’ll learn how to add… Read More »matplotlib Part 10 – Text Annotations
INDEXING AND SLICING MULTIPLY INDEXED SERIES Indexing and slicing multiply indexed Series is intuitive. Let’s use one of the examples… Read More »pandas Part 19 – Indexing and Slicing Multiply Indexed Series
In the previous part we added an image to the workbook. In this part we’ll see how to add a… Read More »openpyxl Part 18 – Bar Charts
In the previous part of the Matplotlib series we were talking about the title and axis labels. Today let’s see… Read More »matplotlib Part 9 – The Legend
MULTI-INDEXED DATAFRAME COLUMNS Up to now we’ve been using multi-level indexing for rows, but it also works with columns. In… Read More »pandas Part 18 – Multi-Indexed DataFrame Columns
In the previous part of the Matplotlib series we were talking about axis ranges. In this part we’ll see how… Read More »matplotlib Part 8 – Axis Labels and Title
In the previous couple parts of the openpyxl series we were talking about styling spreadsheets, in particular about conditional styling.… Read More »openpyxl Part 17 – Adding Images
In this part of the Matplotlib series we’ll be talking about axis ranges. Let’s start by plotting a function: In [1]:… Read More »matplotlib Part 7 – Axis Range
NAMED MULTIINDEX LEVELS Sometimes it’s useful to name the levels of an MultiIndex object. Let’s have a look at the… Read More »pandas Part 17 – Named MultiIndex Levels
In the previous part of the openpyxl series we were talking about the IconSet built-in format, which we used to… Read More »openpyxl Part 16 – Styling with DataBar
In the previous part of the Matplotlib series we were adding Axes to the figure. Today let’s concentrate on a… Read More »matplotlib Part 6 – Line Properties
EXPLICIT CREATION OF MULTI-INDEXED OBJECTS In the previous part of the Pandas series we were creating multi-indexed objects implicitly, so… Read More »pandas Part 16 – Explicit Creation of Multi-Indexed Objects
In the previous part of the openpyxl series we were talking about the ColorScale built-in format, which we used to… Read More »openpyxl Part 15 – Styling with IconSet
In this part of the Matplotlib series we’ll see how to add Axes instances to a figure. To add an… Read More »matplotlib Part 5 – Adding Axes to the Figure
In the previous part of the openpyxl series we were talking about conditional formatting. We were working on the wb2.xlsx… Read More »openpyxl Part 14 – Styling with ColorScale
IMPLICIT CREATION OF MULTI-INDEXED OBJECTS In the previous couple articles in the Pandas series we were talking about multi-indexed objects.… Read More »pandas Part 15 – Implicit Creation of Multi-Indexed Objects
In the previous part of the openpyxl series we were talking about styles. We applied some styles to the wb2.xlsx… Read More »openpyxl Part 13 – Conditional Styling
In the previous part of the Matplotlib series we created a figure with an Axes object on it with three… Read More »matplotlib Part 4 – Multiple Axes
USING PANDAS MULTIINDEX FOR MULTIDIMENSIONAL DATA We can use the MultiIndex for multidimensional data. Here’s our example from the previous… Read More »pandas Part 14 – Using Pandas MultiIndex for Multidimensional Data
In the previous part of the openpyxl series we learned how to add formulae to your workbook. In this and… Read More »openpyxl Part 12 – Styles
In the previous part of the Matplotlib series we created a basic graph. It consists of a figure with just… Read More »matplotlib Part 3 – The Elements of A Graph
STACKING AND UNSTACKING MULTIINDICES In this article we’ll be working on our example from the previous part. Our subject today… Read More »pandas Part 13 – Stacking and Unstacking MultiIndices
In the previous part of the openpyxl series we learned how to freeze rows and columns. Today we’ll see how… Read More »openpyxl Part 11 – Formulae
In the previous part of the Matplotlib series we created the matplotlib folder in Jupyter Notebook. Let’s add a notebook… Read More »matplotlib Part 2 – A Basic Matplotlib Example
In the previous part of the openpyxl series we were adding and removing sheets. We didn’t save the changes, though,… Read More »openpyxl Part 10 – Freezing Rows and Columns
Matplotlib is a cross-platform data visualization library. It’s used to visualize data and the results of all sorts of computations.… Read More »matplotlib Part 1 – Introduction to Matplotlib
PANDAS MULTI-INDEX The two data structures that you know, Series and DataFrame, are basically used for one- and two-dimensional data… Read More »pandas Part 12 – Pandas MultiIndex
MISSING DATA In real-life scenarios data is seldom complete. How does pandas handle missing data? Generally, it uses two null… Read More »pandas Part 11 – Missing Data
In the previous part of the openpyxl series we were inserting and deleting rows and columns. We didn’t save the… Read More »openpyxl Part 9 – Managing Sheets
Pandas makes it easy to operate on data. In case of unary operations index and column labels are preserved. In… Read More »pandas Part 10 – Operations on Data
In the previous part of the openpyxl series we were talking about adding and updating spreadsheet data. This part is… Read More »openpyxl Part 8 – Inserting and Deleting Rows and Columns
We know how to index and slice Series objects. What about DataFrames? Let’s have a look at the example we… Read More »pandas Part 9 – Indexing and Slicing DataFrame Objects
In the previous part we saw an interesting example of slicing. Let’s use the same example again: In [1]: import numpy… Read More »pandas Part 8 – The loc and iloc Indexers