How to avoid “…” when convert a pandas matrix to string?
up vote
0
down vote
favorite
For example,
when the matrix is too wide, is there a way to suppress the "..." in the string format of pandas matrix to show all the detail of each column.
adj_close_reg_1 ... adj_low_reg_5
count 23954.000000 ... 23954.000000
mean 0.999850 ... 0.999501
std 0.019801 ... 0.043667
python pandas dataframe
add a comment |
up vote
0
down vote
favorite
For example,
when the matrix is too wide, is there a way to suppress the "..." in the string format of pandas matrix to show all the detail of each column.
adj_close_reg_1 ... adj_low_reg_5
count 23954.000000 ... 23954.000000
mean 0.999850 ... 0.999501
std 0.019801 ... 0.043667
python pandas dataframe
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
For example,
when the matrix is too wide, is there a way to suppress the "..." in the string format of pandas matrix to show all the detail of each column.
adj_close_reg_1 ... adj_low_reg_5
count 23954.000000 ... 23954.000000
mean 0.999850 ... 0.999501
std 0.019801 ... 0.043667
python pandas dataframe
For example,
when the matrix is too wide, is there a way to suppress the "..." in the string format of pandas matrix to show all the detail of each column.
adj_close_reg_1 ... adj_low_reg_5
count 23954.000000 ... 23954.000000
mean 0.999850 ... 0.999501
std 0.019801 ... 0.043667
python pandas dataframe
python pandas dataframe
asked Nov 10 at 16:00
Capemer
315
315
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
2
down vote
accepted
You can play with set_option
import pandas as pd
pd.set_option('display.height', 1000)
pd.set_option('display.max_rows', 500)
pd.set_option('display.max_columns', 500)
pd.set_option('display.width', 1000)
OR use:
pd.set_option('display.expand_frame_repr', False)
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
accepted
You can play with set_option
import pandas as pd
pd.set_option('display.height', 1000)
pd.set_option('display.max_rows', 500)
pd.set_option('display.max_columns', 500)
pd.set_option('display.width', 1000)
OR use:
pd.set_option('display.expand_frame_repr', False)
add a comment |
up vote
2
down vote
accepted
You can play with set_option
import pandas as pd
pd.set_option('display.height', 1000)
pd.set_option('display.max_rows', 500)
pd.set_option('display.max_columns', 500)
pd.set_option('display.width', 1000)
OR use:
pd.set_option('display.expand_frame_repr', False)
add a comment |
up vote
2
down vote
accepted
up vote
2
down vote
accepted
You can play with set_option
import pandas as pd
pd.set_option('display.height', 1000)
pd.set_option('display.max_rows', 500)
pd.set_option('display.max_columns', 500)
pd.set_option('display.width', 1000)
OR use:
pd.set_option('display.expand_frame_repr', False)
You can play with set_option
import pandas as pd
pd.set_option('display.height', 1000)
pd.set_option('display.max_rows', 500)
pd.set_option('display.max_columns', 500)
pd.set_option('display.width', 1000)
OR use:
pd.set_option('display.expand_frame_repr', False)
edited Nov 10 at 16:07
answered Nov 10 at 16:02
Mayank Porwal
2,3291619
2,3291619
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53240729%2fhow-to-avoid-when-convert-a-pandas-matrix-to-string%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown