File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 47
47
"outputs" : [],
48
48
"source" : [
49
49
" import requests\n " ,
50
- " from datafog import PresidioEngine as datafog \n " ,
50
+ " from datafog import PresidioEngine as presidio \n " ,
51
51
" import pandas as pd"
52
52
]
53
53
},
99
99
" print(df)\n " ,
100
100
" \n " ,
101
101
" def scan_text(text):\n " ,
102
- " return datafog .scan(text)\n " ,
102
+ " return presidio .scan(text)\n " ,
103
103
" \n " ,
104
104
" df['scan_results'] = df['text'].apply(scan_text)\n "
105
105
]
128
128
"source" : [
129
129
" ceo_email_chunk = \" I'm announcing on Friday that Jeff is going to be CTO.\"\n " ,
130
130
" \n " ,
131
- " scan_results1 = datafog .scan(ceo_email_chunk)\n " ,
131
+ " scan_results1 = presidio .scan(ceo_email_chunk)\n " ,
132
132
" print(\" PII Detected - base case:\" , scan_results1)\n " ,
133
133
" \n " ,
134
- " scan_results2 = datafog .scan(ceo_email_chunk, deny_list=['CTO'])\n " ,
134
+ " scan_results2 = presidio .scan(ceo_email_chunk, deny_list=['CTO'])\n " ,
135
135
" print(\" PII Detected with deny list:\" , scan_results2)"
136
136
]
137
137
}
You can’t perform that action at this time.
0 commit comments