prices change

This commit is contained in:
chenxiaodong 2024-06-24 10:55:23 +08:00
parent 128892281c
commit cb8b565e50
3 changed files with 298 additions and 301 deletions

View File

@ -17,13 +17,6 @@
</Attribute> </Attribute>
</value> </value>
</entry> </entry>
<entry key="\data\price.csv">
<value>
<Attribute>
<option name="separator" value=";" />
</Attribute>
</value>
</entry>
<entry key="\data\prices.csv"> <entry key="\data\prices.csv">
<value> <value>
<Attribute> <Attribute>
@ -31,13 +24,6 @@
</Attribute> </Attribute>
</value> </value>
</entry> </entry>
<entry key="\data\processed_prices.csv">
<value>
<Attribute>
<option name="separator" value="," />
</Attribute>
</value>
</entry>
<entry key="\data\station.csv"> <entry key="\data\station.csv">
<value> <value>
<Attribute> <Attribute>

File diff suppressed because it is too large Load Diff

11
split.py Normal file
View File

@ -0,0 +1,11 @@
import pandas as pd
# 读取CSV文件
file_path = '/data/prices.csv'
df = pd.read_csv(file_path)
# 确认数据
print(df.head())
# 保存到新的CSV文件
df.to_csv('/data/prices.csv', index=False)