pandas - 'dataframe' object has no attribute 'str'
问题 I am trying to filter out the dataframe that contains a list of product. However, I am getting the pandas - 'dataframe' object has no attribute 'str' error whenever I run the code. Here is the line of code: include_clique = log_df.loc[log_df['Product'].str.contains("Product A")] If anyone has any ideas of suggestions, please let me know. I've searched many times and I'm quite stuck. Product is an object datatype. EDIT: import __future__ import os import pandas as pd import numpy as np import