<br>

nb_products_per_basket['order_canceled'] = nb_products_per_basket['InvoiceNo'].apply(lambda x:int('C' in x))

I have this :

TypeError: argument of type 'int' is not iterable

**how can I fix it ?**

Python Data Science: Treating Missing Values Using NumPy and Pandas in JupyterLab. Learn how to Adjust Missing Values and Remove unwanted values in this Data Analytics Tutorial using NumPy and Pandas. This Python For data science Tutorial is for beginners as well as advanced programmers.

In this Generating Mock Data with Python, we write a python script to automatically generate a sales dataset. To do this we use the NumPy, Pandas, Calendar, & Datetime libraries.

Python Pandas Tutorial - Data Analysis with Python Pandas will help you get started with Python Pandas Library for various applications including Data analysis. You'll learn: Introduction to Pandas; DataFrames and Series; How To View Data? Selecting Data; Handling Missing Data; Pandas Operations; Merge, Group, Reshape Data; Time Series And Categoricals; Plotting Using Pandas