Merge remote-tracking branch 'origin/main'
commit
f6878b8505
@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectRootManager" version="2" project-jdk-name="pytorch_gpu" project-jdk-type="Python SDK" />
|
||||
<component name="ProjectRootManager" version="2" project-jdk-name="C:\anaconda\envs\pytorch" project-jdk-type="Python SDK" />
|
||||
</project>
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,32 +0,0 @@
|
||||
dtdate,eval,pred
|
||||
2023-08-01,4781.72,4638.4565
|
||||
2023-08-02,5264.18,4224.5635
|
||||
2023-08-03,5308.39,5036.8037
|
||||
2023-08-04,5531.27,5441.4995
|
||||
2023-08-05,5989.36,6265.5225
|
||||
2023-08-06,6373.8,5753.8174
|
||||
2023-08-07,5688.18,4972.277
|
||||
2023-08-08,5287.83,4424.5815
|
||||
2023-08-09,5560.11,4310.7837
|
||||
2023-08-10,5706.55,4657.085
|
||||
2023-08-11,5923.97,5702.3916
|
||||
2023-08-12,6238.88,5897.044
|
||||
2023-08-13,5961.14,4939.6694
|
||||
2023-08-14,5316.45,3566.0615
|
||||
2023-08-15,4802.99,3005.286
|
||||
2023-08-16,4908.05,3805.3303
|
||||
2023-08-17,4792.48,3044.6094
|
||||
2023-08-18,4380.25,3086.1318
|
||||
2023-08-19,4490.53,4237.0283
|
||||
2023-08-20,4577.54,3911.61
|
||||
2023-08-21,4784.33,4044.5312
|
||||
2023-08-22,4517.86,3943.1465
|
||||
2023-08-23,4327.74,4588.3257
|
||||
2023-08-24,4736.04,4383.0825
|
||||
2023-08-25,4981.34,4765.4146
|
||||
2023-08-26,4967.04,4744.9272
|
||||
2023-08-27,5044.84,4771.1987
|
||||
2023-08-28,4919.99,4644.142
|
||||
2023-08-29,3611.24,3359.0356
|
||||
2023-08-30,3184.04,3217.3503
|
||||
2023-08-31,3026.0,3217.8718
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,7 +1,18 @@
|
||||
import numpy as np
|
||||
import pandas as pd
|
||||
n1 = np.array([[1,1,1]])
|
||||
n2 = np.array([1,1,1]).reshape(1,-1)
|
||||
print(n2)
|
||||
n2 = np.array([]).reshape(3,-1)
|
||||
|
||||
print(np.max([[1,2,3],[4,5,6]]))
|
||||
print(np.max([[1,2,3],[4,5,6]]))
|
||||
|
||||
file_dir = r'C:\Users\鸽子\Desktop\浙江各地市分电压日电量数据'
|
||||
df = pd.read_csv(r'C:\Users\鸽子\Desktop\浙江省各地市日电量数据21-23年 .csv',encoding='gbk')
|
||||
df.columns = df.columns.map(lambda x:x.strip())
|
||||
for city in df['地市'].drop_duplicates():
|
||||
df_city = df[df['地市']== city]
|
||||
df_city['stat_date'] = pd.to_datetime(df_city['stat_date'],format='%Y/%m/%d')
|
||||
df_city = df_city[df_city.columns[:-1]]
|
||||
df_city['stat_date'] = df_city['stat_date'].astype('str')
|
||||
df_city.to_excel(fr'C:\Users\鸽子\Desktop\浙江各地市分电压日电量数据\{city}.xlsx',index=False)
|
Loading…
Reference in New Issue