Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas show head and tail

#make 100 3d random numbers
df = pd.DataFrame(np.random.randn(100,3))

# sort them by their axis sum
df = df.loc[df.sum(axis=1).index]

with pd.option_context('display.max_rows',10):
    print(df)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pandas #show #head #tail
ADD COMMENT
Topic
Name
4+7 =