# -*- coding: utf-8 -*-
"""
Created on Tue Apr 24 16:42:16 2018
@author: zhoulei
"""
import pandas as pd
#import numpy as np
from datetime import date,datetime
def read_dataFrame(fileName,sheetName ='' ):
print('File:',end='')
print(fileName)
print('Sheet:',end='')
print(sheetName)
df = pd.read_excel(io=fileName, sheet_name=sheetName, header=0, skiprows=None,
skip_footer=0, index_col=None, names=None,
usecols=None, parse_dates=False, date_parser=None,
na_values=None, thousands=None, convert_float=True,
converters=None, dtype=None, true_values=None,
false_values=None, engine=None, squeeze=False)
df = append_dataFrame(df)
retu
【Python|Pandas】dataFrame简单操作:根据某些列生成新列
最新推荐文章于 2024-07-08 21:17:35 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)