Pandas Series: From Basic to Advanced

Pandas Series are the primary data structure of Pandas, one of the most popular Python packages these days. They are used to represent one-dimensional array-like data, such as a list of values or a column of data from a data frame.

Pandas Series are incredibly powerful tools for working with data. If you are a newbie to Pandas, then you should learn about Series first. It gives you the basic concepts and foundation for working with more complex data structures later.

Series can be used to slice, index, and manipulate data quickly and easily. They also provide an intuitive way to visualize data in charts, tables, and other types of figures. Additionally, Pandas Series have methods for doing arithmetic operations and mathematical calculations, making them extremely useful for data analysis.

Here are all the tutorials and examples of the Pandas Series in order from easy to difficult. Let’s start learning now!

1 A Comprehensive Pandas Series Cheat Sheet

2 How to Create a Series in Pandas (with 6 Examples)

3 Pandas: Add and Insert New Elements into a Series

4 How to Sort a Series in Pandas

5 Pandas: 3 Ways to Count the Elements of a Series

6 Pandas Series: Counting NaN and Non-NaN Values

7 Pandas: 3 ways to update the indexes of a Series

8 How to convert a Pandas Series into a Python dictionary

9 Pandas: How to get unique values in a Series

10 Pandas: Access an element in a Series by position or label

11 Pandas: Get the first/last N elements of a Series

12 Pandas: Clear all non-alphanumeric characters from a Series

13 Pandas: Remove all non-numeric elements from a Series (3 examples)

14 Pandas: How to get the list of indexes in a Series (4 ways)

15 Pandas: How to get the list of values in a Series

16 How to convert a Pandas Series to a Python dictionary

17 Creating Multi-Index Series in Pandas (5 Examples)

18 Pandas: 4 Ways to Loop Through a Series

19 Pandas: How to see the memory usage of a Series/DataFrame (in bytes)

20 Pandas: Check if a Series contains a specific value (5 ways)

21 Pandas: How to determine if a Series contains any NaN values

22 Pandas: How to check if a Series is empty (4 ways)

23 Pandas: How to name/rename a Series

24 Pandas: How to cast a Series to a different data type

25 Pandas: How to make a deep copy of a Series

26 How to convert a Pandas Series to a NumPy array

27 Pandas: How to update a Series element by label/index

28 Pandas: How to drop an item from a Series

29 Understanding pandas.Series.xs() method (through examples)

30 Pandas: Find the Element-wise Sum of N Series

31 Pandas: How to element-wise subtract 2 Series

32 Pandas: How to element-wise multiply 2 Series

33 Pandas: How to element-wise divide a Series by another Series

34 Exploring pandas.Series.floordiv() method (with examples)

35 Pandas: How to get the modulo of 2 Series

36 Pandas: How to element-wise exponentiate 2 Series

37 A detailed guide to pandas.Series.combine() method (with examples)

38 Exploring pandas.Series.combine_first() method (with examples)

39 Pandas: How to round values in a Series to a custom precision

40 Explore Series.lt() and Series.le() methods in Pandas

41 Understanding Series.gt() and Series.ge() methods in Pandas

42 Pandas: Checking the equality of 2 Series (element-wise)

43 Pandas: How to calculate the product of values in a Series

44 Pandas: Calculate the dot product of a Series and another Series/DataFrame

45 Explore pandas.Series.apply() method (through examples)

46 Pandas Series.agg() and Series.aggregate() methods (with examples)

47 Explore pandas.Series.transform() method (with examples)

48 pandas.Series.map() method: A detailed guide (with examples)

49 A detailed guide to pandas.Series.groupby() method

50 How to use pandas.Series.rolling() method (in-depth guide)

51 Pandas: How to perform expanding window operations on Series

52 Pandas: Perform exponentially weighted window operations on Series

53 Understanding pandas.Series.pipe() method (with examples)

54 pandas.Series.abs() method - Practical examples

55 Pandas: Checking if all Series elements are True

56 Using pandas.Series.any() to check if any Series element is True

57 Pandas: How to compute lag-N autocorrelation of a Series

58 What is pandas.Series.between() used for? (with examples)

59 Understanding pandas.Series.clip() method (by examples)

60 Pandas: How to compute correlation between 2 Series

61 Understanding pandas.Series.cov() method (with examples)

62 Pandas: How to get the cumulative min/max of a Series

63 Pandas: Find the cumulative sum/product of a Series

64 Working with pandas.Series.diff() method

65 Explaining pandas.Series.factorize() method through examples

66 Using Pandas Series.kurt() method to compute unbiased kurtosis

67 Pandas: How to get the Min/Max value of a Series

68 Using pandas.Series.mean() to compute the arithmetic mean of a Series

69 Pandas: Get the median of values in a Series

70 Pandas: Find the mode(s) of a given Series

71 Pandas: How to get N largest values of a Series

72 Pandas: How to get N smallest elements of a Series

73 Understanding pandas.Series.pct_change() method (with examples)

74 Exploring pandas.Series.quantile() method

75 Using pandas.Series.rank() method (4 examples)

76 Pandas Series.sem() method: Computing standard error of the mean

77 Pandas: How to calculate unbiased skew of a Series

78 Pandas: Calculate standard deviation of a Series

79 Pandas: Calculating unbiased variance of a Series

80 Pandas: How to count the number of unique values in a Series

81 Pandas: Checking if no values in a Series appear more than once

82 Pandas: Checking if values in a Series are monotonically increasing/decreasing

83 Pandas: Counting the occurrences of unique values in a Series

84 Understanding pandas.Series.align() method (with examples)

85 Using pandas.Series.case_when() method (with examples)

86 Pandas: How to remove duplicate values from a Series

87 Understanding pandas.Series.equals() method

88 Pandas: Get N first/last elements of a Series

89 Pandas Series.idxmax() and Series.idxmin() methods: A detailed guide

90 Making use of pandas.Series.isin() method (with examples)

91 A detailed guide to pandas.Series.reindex() method

92 Understanding pandas.Series.reindex_like() method through examples

93 Pandas: How to rename index labels of a Series

94 Pandas Series.reset_index() method: A practical guide

95 Deep dive into pandas.Series.sample() method

96 An introduction to pandas.Series.take() method (with examples)

97 Exploring pandas.Series.truncate() method (4 examples)

98 Mastering the pandas.Series.where() method (7 examples)

99 The art of using pandas.Series.mask() method (6 examples)

100 Pandas: Adding prefix/suffix to index labels of a Series

101 Pandas: Filter elements of a Series based on a condition

102 Utilizing the pandas.Series.bfill() method (4 examples)

103 Pandas: How to drop all NA/NaN values from a Series

104 Understanding pandas.Series.ffill() method (with examples)

105 Mastering pandas.Series.fillna() method (6 examples)

106 Pandas Series.interpolate() method: A detailed guide

107 Convert a Pandas Series to a Python List of Tuples

108 Pandas – Using Series.replace() method (3 examples)

109 Pandas Series.argsort() method: Tutorial & Examples

110 Python: Turn a List of Tuples to a Pandas Series

111 Exploring pandas.Series.reorder_levels() method (4 examples)

112 Pandas: Sorting a Series by index labels (5 examples)

113 Understanding pandas.Series.swaplevel() method (with examples)

114 Using pandas.Series.unstack() method (with examples)

115 Working with pandas.Series.explore() method (4 examples)

116 Pandas Series.searchsorted() method: A practical guide

117 Making use of pandas.Series.repeat() method (5 examples)

118 Using pandas.Series.squeeze() method (5 examples)

119 Pandas: How to Visualize a Time Series with Holidays

120 Pandas: How to compare 2 Series and show the difference

121 Pandas: How to update a Series in place (6 examples)

122 Pandas time series: Handling data with irregular time intervals

123 Exploring pandas.Series.asfreq() method (4 examples)

124 An Introduction to Time Series in Pandas (with basic examples)

125 Pandas: Convert a Series of date strings to a datetime objects

126 Pandas: Generate a Time Series between 2 Given Dates

127 Understanding pandas.Series.asof() method (4 examples)

128 pandas.Series.shift() method: A detailed guide (with examples)

129 Unlocking the power of pandas.Series.resample() method (6 examples)

130 Understanding pandas.Series.tz_convert() method (5 examples)

131 How to use pandas.Series.tz_localize() method (6 examples)

132 Using pandas.Series.at_time() to select values at a specific time

133 Using pandas.Series.between_time() to select values between 2 times

134 Exploring pandas.Series.cat() method (5 examples)

135 Using pandas.Series.dt accessor to work with date and time

136 Pandas: Removing leading/trailing whitespaces from Series’ elements

137 Pandas Series: How to Perform Case Transformation

138 Using pandas.Series.str.match() method with regex (5 examples)

139 Pandas: How to pad all strings in a Series to a minimum length

140 Pandas: Replace each occurrence of regex pattern in Series

141 Pandas: How to slice substrings from each element of a Series

142 Using pandas.Series.str.slice_replace() method (5 examples)

143 Explore pandas.Series.str.split() method (4 examples)

144 Pandas: Check if each Series element starts/ends with a substring

145 Pandas DatetimeIndex: Explained with examples

146 Pandas TimedeltaIndex examples (basic to advanced)

147 Pandas PeriodIndex examples

148 Pandas Time Series: Handle Daylights Saving Time (DST) Transitions

149 Pandas Time Series: How to specify custom holidays

150 Understanding Business Hours in Pandas Time Series

151 Pandas Time Series Shift & Lag Examples

152 Pandas: Convert a Time Series to a list of datetime objects

153 Pandas Time Series: Change daily frequency to week/month frequency

154 Pandas: Split a Time Series by Year, Month, and Day

155 Explore pandas.Series.dt.floor() method (4 examples)

156 3 ways to turn off future warnings in Pandas

157 Understanding pandas.Series.to_period() method (5 examples)

158 Explore pandas.Series.convert_dtypes() method

159 Using pandas.Series.to_markdown() method (3 examples)

160 Pandas time series: Find the sum/avg/min/max of each day/month/year

161 Pandas time series: Adjust stock price after paying dividends or splitting – Example

162 Pandas Time Series: Calculate EMA of Stock Price (Exponential Moving Average)

163 Pandas time series: Calculating stock price RSI (relative strength index)

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments