Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

readtable.jl 802 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
  1. using FileIO
  2. using CSV
  3. using TidierData
  4. using DataFrames
  5. using TidierDates
  6. using BenchmarkTools
  7. using TidierStrings
  8. using XLSX
  9. df = CSV.read("TCSC_web2023.csv", DataFrame, header = 2)
  10. # 比對檔案
  11. srda = @chain pwd() begin
  12. joinpath("backend-DB/SRDA-BibData.csv")
  13. CSV.read(DataFrame, missingstring="")
  14. end
  15. names(df)
  16. l0 = uppercase.(df[!, :論著標題])
  17. l0 = replace.(l0, r"\(.+\)$" => "")
  18. l1 = uppercase.(skipmissing(srda[!, :原始題目]))
  19. bol = l0 .∉ Ref(l1)
  20. xx = df[bol, :]
  21. CSV.write("crawled-data/tscs2023_checked.csv", xx)
  22. ss = "高教擴張前後大學學歷對主觀社會地位的影響(A Causal Analysis of the Impact of College Expansion on Subjective Social Status)"
  23. s2 = "臺灣社會的孝道變遷(1994-2021):基於雙元孝道架構的年齡-時期-世代效應分析"
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...