Skip to content

Instantly share code, notes, and snippets.

@Bookoff
Created February 20, 2015 00:56
Show Gist options
  • Save Bookoff/583a00188f60d162c742 to your computer and use it in GitHub Desktop.
Save Bookoff/583a00188f60d162c742 to your computer and use it in GitHub Desktop.
Transponse Data
# Транспонирование данных
print df.T
# ВЫВОД
# 0 1 2 3 4 5 6 7 8 9 10 \
# Alpha 1243 4158 1787 17152 1266 5576 927 21540 1039 5424 981
# Beta 2934 9235 1922 14501 2385 7452 1099 17038 1382 10588 1311
# Gamma 148 4287 1955 3536 2530 771 2796 2463 2592 1064 2560
# Tetta 3300 8063 1074 19607 3315 13134 5134 14226 6842 13828 5078
# Zeta 10553 35257 4544 31687 8520 28252 3106 36238 4973 40140 3466
#
# 11 12 13 14 15 16 17 18 19
# Alpha 27366 1100 7212 1048 25679 1055 5437 1029 23710 ...
# Beta 15093 1701 11001 1427 15661 2191 6461 1183 12222 ...
# Gamma 3039 2382 1088 2847 2942 2119 734 2302 2598 ...
# Tetta 14206 6750 14774 5526 14452 5882 10477 6438 8446 ...
# Zeta 32395 6233 41634 4402 33717 7352 24494 3316 26659 ...
#
# [5 rows x 79 columns]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment