file name to stock code Parameters ---------- fname: str
(fname: str)
| 923 | |
| 924 | |
| 925 | def fname_to_code(fname: str): |
| 926 | """file name to stock code |
| 927 | |
| 928 | Parameters |
| 929 | ---------- |
| 930 | fname: str |
| 931 | """ |
| 932 | |
| 933 | prefix = "_qlib_" |
| 934 | if fname.startswith(prefix): |
| 935 | fname = fname.lstrip(prefix) |
| 936 | return fname |
| 937 | |
| 938 | |
| 939 | from .mod import ( |
no outgoing calls
no test coverage detected