Answers for "python dataframe 10 rows 2 columns"

8

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
2

select 2 cols from dataframe python pandas

# Convert the dictionary into DataFrame 
df = pd.DataFrame(data)
  
# select two columns
df[['Name', 'Qualification']]
Posted by: Guest on May-10-2021

Code answers related to "python dataframe 10 rows 2 columns"

Python Answers by Framework

Browse Popular Code Answers by Language