Answers for "show only a few columns of pands dataframe"

6

show more columns / rows of a Pandas DataFrame

import pandas as pd
pd.set_option('display.max_rows', 500)
pd.set_option('display.max_columns', 500)
pd.set_option('display.width', 1000)
Posted by: Guest on March-30-2020
0

df only take 2 columns

df1 = df[['a', 'b']]
Posted by: Guest on August-06-2020

Code answers related to "show only a few columns of pands dataframe"

Python Answers by Framework

Browse Popular Code Answers by Language