pandas.dataframe.head(n) 用于預覽前n行數(shù)據(jù)
參數(shù):n 預覽前n行
用法
import pandas as pd
rides=pd.read_csv('data.csv')
rides.head(n)
參考與詳細:
官方文檔 https://www.pypandas.cn/docs/getting_started/basics.html#head-與-tail
博? ? ? ?客?https://blog.csdn.net/qq_18649781/article/details/89033749
感謝!
? ??