1.打印所有的行所有的列存储的数据
#此方法,文本不能对齐显示
df = pd.DataFrame(pd.read_excel('day2.xlsx')) # 显示读取文件内容
pd.set_option('display.width', None) # 打印所有列
pd.set_option('display.max_rows', None) # 打印所有行
print(df) # 打印文件内容
#此方法,文本能对齐显示
import pandas as pd
from tabulate import tabulate
df = pd.DataFrame