You've written your first data science function in Python. Next up: default arguments, variable-length argument lists, nested functions, and error handling, all applied to tasks like Twitter dataframe analysis.
Chapters
Congratulations, you're now a bonafide Python function writer. On top of that, you've just written your very first data sciencey function. At this point, although you can write basic functions, you've really just touched the surface of function writing capabilities. In the following chapters, you'll learn how to write functions that have default arguments so that when you call them you don't always have to specify all of the parameters. You'll learn how to write functions that can accept an arbitrary number of parameters and how to nest functions within one another. On top of this, you'll learn how to handle errors when writing functions, which will make your functions as robust as they need to be. Moreover, you'll see the importance of such techniques in data science by writing functions that are pertinent to the data science sphere, like the Twitter data frame analysis that you just performed. I am pumped for this and can't wait to see you in the next chapter.