Skip to content

Instantly share code, notes, and snippets.

@Bookoff
Created February 20, 2015 00:47
Show Gist options
  • Save Bookoff/4df4242472c8d2e5059f to your computer and use it in GitHub Desktop.
Save Bookoff/4df4242472c8d2e5059f to your computer and use it in GitHub Desktop.
Data Trasformation
# Первые несколько строк данных
print df.head()
# ВЫВОД
# Alpha Beta Gamma Tetta Zeta
# 0 1243 2934 148 3300 10553
# 1 4158 9235 4287 8063 35257
# 2 1787 1922 1955 1074 4544
# 3 17152 14501 3536 19607 31687
# 4 1266 2385 2530 3315 8520
# [5 rows x 5 columns]
# Несколько последних строк данных
print df.tail()
# ВЫВОД
# Alpha Beta Gamma Tetta Zeta
# 74 2505 20878 3519 19737 16513
# 75 60303 40065 7062 19422 61808
# 76 6311 6756 3561 15910 23349
# 77 13345 38902 2583 11096 68663
# 78 2623 18264 3745 16787 16900
# [5 rows x 5 columns]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment