We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09cc5d4 commit 6c8212bCopy full SHA for 6c8212b
猜数字/main.py
@@ -115,4 +115,27 @@ def main():
115
# main()
116
117
# 2.可视化
118
- show_res()
+ # show_res()
119
+
120
+ import numpy as np
121
122
+ lis = [{
123
+ "trading_date": "2020-05-14",
124
+ "commodity_id": "I2009",
125
+ "member_name": "永安期货",
126
+ "rank": "1",
127
+ "volume": "101219",
128
+ "volume_change": "4148"
129
+ },
130
+ {"trading_date": "2020-05-14",
131
132
+ "member_name": "xxxx",
133
134
135
+ "volume_change": "4148"}
136
+ ]
137
138
+ dataframe = pd.DataFrame(lis)
139
+ line = dataframe[dataframe["member_name"] == "永安期货"]
140
+ print(line["volume"].values[0])
141
+ print(line["volume_change"].values[0])
0 commit comments