In [4]:
s = set([1,2,3,4])
t = set([1,2,3,4])

In [7]:
t==s


Out[7]:
True

In [8]:
import pandas as pd

In [22]:
s = pd.Series(['1,3,3,2,4,5,6'])
len(s[0]),s,s[0][3]


Out[22]:
(13, 0    1,3,3,2,4,5,6
 dtype: object, ',')

In [26]:
[int(x) for x in s[0].split(',')]


Out[26]:
[1, 3, 3, 2, 4, 5, 6]

In [12]:
s


Out[12]:
0    1,3,3,2,4,5,6
dtype: object

In [19]:
s[0][2]


Out[19]:
'3'

In [62]:
text = '1,3,3,2,4,5,6'
s = pd.Series(text.split(','))
s.astype('int64')


Out[62]:
0    1
1    3
2    3
3    2
4    4
5    5
6    6
dtype: int64

In [68]:
x = s.str.cat(sep=',')
x


Out[68]:
'1,3,3,2,4,5,6'

In [70]:
type(x),len(x)


Out[70]:
(str, 13)

In [71]:
print(x)


1,3,3,2,4,5,6

In [34]:
type(df)


Out[34]:
pandas.core.frame.DataFrame

In [42]:
df.columns


Out[42]:
Index(['1', '2', '3', '4', '5'], dtype='object')

In [ ]: