project01

the question

  • 最早时间出发为第一架航班,

  • 接下来第二架要求:到达日期与第一架航班的出发日期的时间间隔不小于45分钟,且序号最小

  • 一次类推将所有航班排完

the data

the transmission of the data

import numpy as np import pandas as pd from pandas import Series, DataFrame

df1 = pd.read_clipboard()

df1

df1.shape

df1.T

df1.head()

df1

s1 = df1['出发\n时刻']

df2 = df1['出发\n日期'].map(str)+df1['出发\n时刻'].map(str)

s2 = df1['出发\n日期']

To Be Continued

猜你喜欢

转载自www.cnblogs.com/hugeng007/p/9655997.html