Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to display all rows in Jupyter Notebook

I am using Try Jupyter! https://try.jupyter.org/

I have following R code to display data (120 rows).

require(plyr)

seed=42
blocksize = 4
N = 120
set.seed(seed)
block = rep(1:ceiling(N/blocksize), each = blocksize)
a1 = data.frame(block, rand=runif(length(block)), envelope= 1: length(block))
a2 = a1[order(a1$block,a1$rand),]
a2$arm = rep(c("Arm 1", "Arm 2"),times = length(block)/2)
assign = a2[order(a2$envelope),]

head(assign,120)

How can I display all details of data instead of having these dots ( ... ) between rows in the middle? enter image description here

When I tried this R script at my local server, I only got 30 rows of data and break of rows was between 8 and 23.

I was reading other question on Stackoverflow, and it mentioned about Pandas series.

I am not sure how this case could be related to Pandas (since I did not use any Python directly here).

My question is where do I change so that it would display all rows? (in local server or possibly at https://try.jupyter.org/ as well)

Do I have execute Python script to server?

like image 433
Java Avatar asked Mar 07 '23 21:03

Java


1 Answers

pd.options.display.max_rows = 999
  • https://pandas.pydata.org/pandas-docs/stable/user_guide/options.html
like image 50
TomDotTom Avatar answered Mar 10 '23 11:03

TomDotTom