Loading tutorials
Series, and a Series carries an index, a dtype, and a name. These three properties explain how column arithmetic lines up rows, how types are chosen, and why some assig5 min readassign(), conditional columns, and copy warn5 min readdf["price"] returns a Series. NumPy knowledge helps but is not required.5 min readdf["col"] = ... adds a column. Here you will learn how assign() does the same job inside a method chain, how its evaluation order works, and where it goes wrong.5 min readdf["price"] < 5. You should also know that a comparison on a column returns a boolean Series. NumPy knowledge is helpful but not required.6 min readastype, to_numeric, and to_datetime. It assumes you can build a DataFrame, select a column by name, and read basic Python. You also need to know that assigning to df["name"] creates or replaces a column, as the earlier chapte4 min readdf["name"] = .... You should also know that a column is a Series and that the earlier chapters' vectorized operations work on a whole column at once. Basic regular expressions help in the second h5 min readpd.to_datetime. Here you will learn how the .dt accessor turns one datetime column into many derived columns, and whe4 min readSeries.map and Series.replace both do this, but they treat values that you don't list in different ways. Choosing the wrong one is a common 4 min readnp.select, map, and the .str and .dt accessors to build columns. This chapter covers apply, which runs your own Python function on a column or on each row. It is the most flexible tool for building columns and usually the slowest, so the chapter also co4 min readdf["a"] * df["b"]. You should also know that pandas marks a missing number as NaN (not a number). Here you will learn what happens to those gaps when you derive new columns, wh4 min readpd.cut, which uses edges you choose, and pd.qcut, which picks edges so each bin holds about the same number of rows. It assumes you can create a DataFrame, select a column by name, and ass5 min readdf["name"] = ..., and have a rough idea of what groupby does. You do not need to know merge well, though the chapter mentions it for comparison.5 min readdf["name"] = .... You should also know boolean masks such as df["price"] > 5. The chapter explains why some assignments silently fail, what the warnings mean, and which patterns are safe.5 min readdf["name"] = ..., how np.where and np.select work, and what map, apply, .str, .dt, cut, and transform do. This chapter does not introduce new methods. It gives you a way to pick among 5 min read