R(
Size: a a a
R(
DS
R(
S
S
import pandas as pd
df = pd.DataFrame({'A': ['my string', 'another string']})
print(df)
A
0 my string
1 another string
df['B'] = df.A.str.split(' ')
print(df)
A B
0 my string [my, string]
1 another string [another, string]
df.A = df.A.str.split(' ')
print(df)
A
0 [my, string]
1 [another, string]
new_df = df.A.str.split(' ', expand=True)
df = df.join(new_df)
print(df)
A 0 1
0 my string my string
1 another string another string
DS
S
import pandas as pd
df = pd.DataFrame({'A': ['my string', 'another string']})
row = df.iloc[[0]]
row.values[0][0].split(' ')
['my', 'string']
R(
S
S
In [48]: df.iloc[0][0].split(' ')
Out[48]: ['my', 'string']
S
DS
S
DS
S
S
R
АД
R
MZ