Вместо этого используйте списочное понимание со сглаживанием sum
:
test = pd.Series([x for item in data.SPLIT for x in item]).value_counts()
Или сведите с помощью chain.from_iterable
:
from itertools import chain
test = pd.Series(list(chain.from_iterable(data.SPLIT))).value_counts()
Или используйте также collections.Counter
:
from itertools import chain
from collections import Counter
test = pd.Series(Counter(chain.from_iterable(data.SPLIT)))
Или:
import functools, operator
test = pd.Series(functools.reduce(operator.iconcat, data.SPLIT, [])).value_counts()
Решение для чистых панд:
test = pd.DataFrame(data.SPLIT.values.tolist()).stack().value_counts()
Для изменения ориентации от левого до права используют свойство FlowDirection для RightToLeft.
RadioButton используется в группе так, чтобы пользователь мог выбрать только одну опцию из доступных вариантов (Никакое дополнительное кодирование не требуется, чтобы снять флажок с другими). Используйте тот же GroupName переключателей для маркировки в группе так, чтобы только одна опция могла быть выбрана следующим образом.
<RadioButton Height="16" Margin="26,18,132,0" Name="RadioButton_Option1" VerticalAlignment="Top" Background="Snow" BorderBrush="Black" GroupName="Visit_eggHeadcafe.com" Foreground="DarkBlue">ASP.net Articles </RadioButton>
<RadioButton Height="16" Margin="26,18,132,0" Name="RadioButton_Option2" VerticalAlignment="Top" Background="Snow" BorderBrush="Black" GroupName="Visit_eggHeadcafe.com" Foreground="DarkBlue">C# Articles</RadioButton>
<RadioButton Height="16" Margin="26,18,132,0" Name="RadioButton_Option3" VerticalAlignment="Top" Background="Snow" BorderBrush="Black" GroupName="Visit_eggHeadcafe.com" Foreground="DarkBlue">ADO.net Articles</RadioButton>
<RadioButton Height="17" Margin="26,18,115,0" Name="RadioButton_Option4" VerticalAlignment="Top" Background="Snow" BorderBrush="Black" GroupName="Visit_eggHeadcafe.com" Foreground="DarkBlue" Width="164">SQL Server 2005 Articles</RadioButton>
<Button Margin="26,18,132,0" Width="75" Height="20" Click="Button_Click">Open Articles</Button>
</StackPanel >