我在pyspark中有一个包含I和位置代码的df。我的问题是一些I重复,并且包含一行我想忽略的信息。Location2 L-Location
2 Keep this row too 在这个玩具示例中,我想丢弃每个ID中包含Legacy或L-*的行 我尝试构建自己的名为filterLoc的函数,然后使用df.groupby(I
我正在尝试创建一个新列,使用以下方法检查我的值中是否有字符串:但我一直收到以下信息using .loc[row_indexer,col_indexer] = value instead
See the caveats in the documentation: https://pandas.pydata.org