number of column in dataset pandas

len(df.columns)

Here is what the above code is Doing:
1. We’re creating a list of all the columns in the df.
2. We’re creating a list of all the columns in the df that have the word ‘_id’ in them.
3. We’re creating a list of all the columns in the df that have the word ‘_id’ in them and that are not the ‘_id’ column.
4. We’re creating a list of all the columns in the df that have the word ‘_id’ in them and that are not the ‘_id’ column and that are not the ‘_id’ column.
5. We’re creating a list of all the columns in the df that have the word ‘_id’ in them and that are not the ‘_id’ column and that are not the ‘_id’ column and that are not the ‘_id’ column.
6. We’re creating a list of all the columns in the df that have the word ‘_id’ in them and that are not the ‘_id’ column and that are not the ‘_id’ column and that are not the ‘_id’ column and that are not the ‘_id’ column.
7. We’re creating a list of all the columns in the df that have the word ‘_id’ in them and that are not the ‘_id’ column and that are not the ‘_id’ column and that are not the ‘_id’ column and that are not the ‘_id’ column and that are not the ‘_id’ column.
8. We’re creating a list of all the columns in the df that have the word ‘_id’ in them and that are not the ‘_id’ column and that are not the ‘_id’ column and that are not the ‘_id’ column and that are not the ‘_id’ column and that are not the ‘_id’ column and that are not the ‘_id’ column.
9. We’re creating a list of all the columns in the df that have the word ‘_id’ in them and that are not the ‘_id’ column and that are not the ‘_id’ column and that are not the ‘_id’ column and that are not the ‘_id’ column and that are not the ‘_id’ column and that are not the ‘_id’ column and that are not the ‘_id’ column