Update feature_column_v2.py
Fixed line lengths
This commit is contained in:
parent
3b0139f50f
commit
89446363a3
@ -1605,9 +1605,9 @@ def categorical_column_with_vocabulary_file_v2(key,
|
|||||||
|
|
||||||
Example with `default_value`:
|
Example with `default_value`:
|
||||||
File `'/us/states.txt'` contains 51 lines - the first line is `'XX'`, and the
|
File `'/us/states.txt'` contains 51 lines - the first line is `'XX'`, and the
|
||||||
other 50 each have a 2-character U.S. state abbreviation. Both a literal `'XX'`
|
other 50 each have a 2-character U.S. state abbreviation. Both a literal
|
||||||
in input, and other values missing from the file, will be assigned ID 0. All
|
`'XX'` in input, and other values missing from the file, will be assigned
|
||||||
others are assigned the corresponding line number 1-50.
|
ID 0. All others are assigned the corresponding line number 1-50.
|
||||||
|
|
||||||
```python
|
```python
|
||||||
states = categorical_column_with_vocabulary_file(
|
states = categorical_column_with_vocabulary_file(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user