ÓãCÂÛ̳

 ÕÒ»ØÃÜÂë
 Á¢¼´×¢²á
²é¿´: 1469|»Ø¸´: 3

python´¦Àíexcel

[¸´ÖÆÁ´½Ó]
·¢±íÓÚ 2021-12-7 11:26:59 | ÏÔʾȫ²¿Â¥²ã |ÔĶÁģʽ

ÂíÉÏ×¢²á£¬½á½»¸ü¶àºÃÓÑ£¬ÏíÓøü¶à¹¦ÄÜ^_^

ÄúÐèÒª µÇ¼ ²Å¿ÉÒÔÏÂÔØ»ò²é¿´£¬Ã»ÓÐÕ˺ţ¿Á¢¼´×¢²á

x
±¾Ìû×îºóÓÉ fei123456 ÓÚ 2021-12-7 15:19 ±à¼­

pythonÈçºÎÉèÖÃÖ¸¶¨Áеĵ¥Ôª¸ñ¸ñʽΪÈÕÆÚ¡£
ÏëÖªµÀС¼×Óã×î½üÔÚ×öɶ£¿Çë·ÃÎÊ -> ilovefishc.com
·¢±íÓÚ 2021-12-7 18:11:40 | ÏÔʾȫ²¿Â¥²ã
from datetime import datetime
import pandas as pd
tran['date'] = pd.to_datetime(tran['date']) # dateתΪʱ¼ä¸ñʽ
ÏëÖªµÀС¼×Óã×î½üÔÚ×öɶ£¿Çë·ÃÎÊ -> ilovefishc.com
 Â¥Ö÷| ·¢±íÓÚ 2021-12-9 10:13:30 | ÏÔʾȫ²¿Â¥²ã

ÄãºÃ£¬ÎÒÏëÎÊÏ£¬tranÊDZí¸ñô?»¹ÊÇpandas×Ô´øµÄº¯Êý£¿ÎÒÊäÈëtran»á±¨´í
ÏëÖªµÀС¼×Óã×î½üÔÚ×öɶ£¿Çë·ÃÎÊ -> ilovefishc.com
·¢±íÓÚ 2021-12-9 12:37:28 | ÏÔʾȫ²¿Â¥²ã
fei123456 ·¢±íÓÚ 2021-12-9 10:13
ÄãºÃ£¬ÎÒÏëÎÊÏ£¬tranÊDZí¸ñô?»¹ÊÇpandas×Ô´øµÄº¯Êý£¿ÎÒÊäÈëtran»á±¨´í

tranÊÇÄã×Ô¼ºµÄÊý¾Ý£¬['date']¾ÍÊÇÄãÊý¾ÝÀïÃæµÄʱ¼äÁÐ
ÏëÖªµÀС¼×Óã×î½üÔÚ×öɶ£¿Çë·ÃÎÊ -> ilovefishc.com
ÄúÐèÒªµÇ¼ºó²Å¿ÉÒÔ»ØÌû µÇ¼ | Á¢¼´×¢²á

±¾°æ»ý·Ö¹æÔò

СºÚÎÝ|ÊÖ»ú°æ|Archiver|ÓãC¹¤×÷ÊÒ ( ÔÁICP±¸18085999ºÅ-1 | ÔÁ¹«Íø°²±¸ 44051102000585ºÅ)

GMT+8, 2025-1-12 17:31

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

¿ìËٻظ´ ·µ»Ø¶¥²¿ ·µ»ØÁбí