PySpark LIKE operation is used to match elements in the PySpark data frame based on certain characters that are used for filtering purposes. We can filter data from the data frame by using the like operator. This filtered data can be used for data analytics and processing purpose. It can be...
df = pd.DataFrame([[1, 2, 3], [4, 5, 6], [7, 8, 9]], columns={'T101', 'T201', 'G101'}) df.filter(like=['T1', 'T2']) 它不受支持,因为like=''只接受1个字符串。 我当前使用的缓慢解决方法: col_list = df.columns target_cols = [e for e in col_list if any(se in...