Python for Excel users
Do what you already do in Excel, in Python: filters, sorting, formulas, VLOOKUP, IF, SUMIFS, pivot tables and charts with pandas.
If you know Excel, you already know most of the ideas in data analysis. This course takes the Excel tasks you use every day and shows how to do each one in Python with pandas, side by side with the Excel formula. Learn the Excel side in depth on Excelversity.
- 1Python for Excel users: why and whenWhat Python adds to what you already do in Excel, when Excel is still the better tool, and the small amount of Python you need to start.14 min
- 2A sheet is a DataFrame: rows and columnsHow an Excel sheet maps to a pandas DataFrame: headers become column names, cell references become df.loc, and ranges become slices.15 min
- 3Open Excel and CSV files in PythonRead .xlsx workbooks and CSV files into pandas, choose sheets and columns, handle European number formats and save the result back to Excel.15 min
- 4Filter and sort data like Excel AutoFilterReplace AutoFilter and Sort with pandas: keep rows that match one or more conditions, filter text, pick a top 3 and sort by several columns.15 min
- 5Excel formulas as pandas column calculationsTurn fill-down formulas, absolute references, ROUND, running totals and row sums into one-line pandas column calculations.15 min
- 6IF, nested IF and IFS in pandasWrite Excel IF, nested IF, IFS, SWITCH and IF with AND/OR in pandas with np.where, np.select and .map, for a whole column at once.16 min
- 7VLOOKUP in Python with pandasDo VLOOKUP, XLOOKUP, IFERROR and approximate-match lookups in pandas with map() and merge(), and avoid the duplicate-key trap.17 min
- 8SUMIF, COUNTIF and SUMIFS in pandasWrite SUMIF, COUNTIF, SUMIFS, COUNTIFS, AVERAGEIFS and MAXIFS in pandas with masks, and get a whole summary table at once with groupby.16 min
- 9Pivot tables in Python with pandasBuild Excel-style pivot tables with pandas pivot_table: rows, columns, values, sum or count, grand totals, filters and saving to Excel.16 min
- 10Excel text functions in pandas (.str)LEFT, RIGHT, MID, LEN, TRIM, PROPER, CONCAT, SUBSTITUTE, FIND and Text to Columns in pandas, using the .str methods on a whole column.16 min
- 11Excel date functions in Python with pandasYEAR, MONTH, EOMONTH, EDATE, NETWORKDAYS, DATEDIF and Excel date serial numbers in pandas, with fixed dates so results never change.17 min
- 12Remove duplicates and check data in pandasRemove duplicates like Excel, find invalid values the way Data Validation would, and flag rows instead of colouring them with conditional formatting.15 min
- 13Excel-style charts in Python with matplotlibMake column, clustered column, line and ranked bar charts like Excel's with matplotlib and pandas, add titles and labels, and save them as images.16 min
- 14Project: a monthly sales report in PythonBuild a monthly sales report in one Python script: clean, filter the month, look up targets, summarise, pivot, chart and save to Excel.25 min