I am trying to get financial info specifically XBRL tags from SEC dataset: https://www.sec.gov/dera/data/financial-statement-data-sets.html, and I was able to found around 328 tags, 89 non-repeated ones. merge sub with num, find all tags in the sub_num files
company = 1166126
sub_s_f = sub[(sub.cik == company)]`
jcp_num = num[(num.adsh == '0001166126-15-000055')]
jcp_num_tag_list = jcp_num.tag.tolist()
jcp_num_tag_set = set(jcp_num_tag_list_new)
However, when I tried to find all tags in JCPENNEY'S XBRL submission file, ftp://ftp.sec.gov/edgar/data/1166126/0001166126-15-000055.txt. I was able to find around 858 tags, 180 non-repeated ones.
all_tags = soup.find_all(re.compile("\w"), attrs={"unitref":re.compile("\w")})
Now I am confused and wonder if anyone knows whether SEC eliminates any tags before it groups them into dataset.
Would appreciate any thoughts or feedbacks!