You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

为何pd.concat会将合并结果的数据类型从int转为float?

我现在手头有三个Pandas DataFrame,分别是timestamp、dataSun和dataData,给你拆解下它们的细节:

1. timestamp DataFrame

这个DataFrame仅包含一列时间戳数据,数据类型为int64。它的head()输出结果如下:

timestamp
01521681600000
11521681900000
21521682200000
31521682500000
41521682800000

2. dataSun DataFrame

这个DataFrame存储着日出和日落的时间戳,包含sunrise和sunset两列,数据类型同样为int64。它的head()输出结果如下:

sunrisesunset
015216961050001521740761000
115216961050001521740761000
215216961050001521740761000
315216961050001521740761000
4152169610......

3. dataData DataFrame

这个DataFrame专门用来存储各类气候相关的数据,目前暂未提供它的具体数据类型和head()输出内容,仅知晓其中包含多种气候指标。

内容的提问来源于stack exchange,提问作者M.Nelly

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.25 07:21:52