/Volumes/TIME/M/getindustry.py:35: Pandas4Warning: The inplace keyword in DataFrame.sort_values is deprecated and will be removed in a future version (PDEP-8).
See https://pandas.pydata.org/docs/dev/whatsnew/v3.1.0.html#deprecation-inplace for more details.
result.sort_values(axis=0,ascending=True,by=["date"],inplace=True)
B06煤炭开采和洗选业
date open ... cum_volume_year cum_amount_year
0 1994-01-06 0.553455 ... 1.557530e+03 1.094660e+03
1 1994-01-07 0.768687 ... 3.831740e+03 2.923664e+03
2 1994-01-10 0.811734 ... 4.508880e+03 3.470878e+03
3 1994-01-11 0.799435 ... 4.829940e+03 3.719108e+03
4 1994-01-12 0.744089 ... 5.339250e+03 4.112965e+03
... ... ... ... ... ...
7965 2026-11-04 301.290000 ... 2.611957e+07 2.630775e+08
7966 2026-11-05 297.770000 ... 2.624654e+07 2.645318e+08
7967 2026-11-06 289.610000 ... 2.633353e+07 2.654389e+08
7968 2026-11-09 291.080000 ... 2.645663e+07 2.666464e+08
7969 2026-11-10 296.910000 ... 2.656478e+07 2.676363e+08
[7970 rows x 26 columns]
Traceback (most recent call last):
File "/Volumes/TIME/M/getindustry.py", line 339, in
sp.title.string=selected.columns[0]
^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'string' and no __dict__ for setting new attributes