это часть моего фрейма данных:
RefactoringDetail
"Pull Up Attribute protected steps : int from class blokusgame.mi.android.hazi.blokus.GameLogic.PlayerAlgorithm to class blokusgame.mi.android.hazi.blokus.GameLogic.Player"
"Pull Up Attribute protected steps : int from class blokusgame.mi.android.hazi.blokus.GameLogic.PlayerAlgorithm to class blokusgame.mi.android.hazi.blokus.GameLogic.Player"
"Pull Up Attribute protected steps : int from class blokusgame.mi.android.hazi.blokus.GameLogic.PlayerAlgorithm to class blokusgame.mi.android.hazi.blokus.GameLogic.Player"
"Move Class GameLogic.PlayerHuman moved to blokusgame.mi.android.hazi.blokus.GameLogic.PlayerHuman"
Мне нужна только эта часть:
blokusgame.mi.android.hazi.blokus.GameLogic.PlayerAlgorithm
blokusgame.mi.android.hazi.blokus.GameLogic.PlayerAlgorithm
blokusgame.mi.android.hazi.blokus.GameLogic.PlayerAlgorithm
GameLogic.PlayerHuman
это мой код:
import pandas as pd
df = pd.read_csv('result_refactorings.csv', sep=';')
refactoring_details = df['RefactoringDetail']
print(refactoring_details)
a=refactoring_details.to_frame(name=None)
Изатем, чтобы извлечь то, что мне нужно из фрейма данных, я пытался использовать подстроку, но она не работала
for elem in a:
s = substring.substringByChar("elem", startChar="c", endChar="n")
Я пытался извлечь данные после класса String, а затем я обнаружил, что в той же строке у меня естьКласс 2 строки, но мне нужны только данные после первого класса
Спасибо за помощь!