Data1={
"A" : "A2001M50000. 9977," BD2002M49000. 3355 ', 'CT2003N52000. 6688', 'D2004N49000. 3366'],
"B" :,5,6,8 [4],
"C" :,8,9,5 [7]
}
Df=pd DataFrame (data1)
Df's common characteristic is that a column data containing the letter M or N, on both sides of the M and N is the number, and then to the left is letters (number of 1-3), the back is Numbers. Numbers, is now demands, according to the string in the middle of the letters in a column, df extracted into contains only M or only two DataFrame containing N