Skip to content

Move string strip in serialize_row#5

Open
willeppy wants to merge 1 commit into
HazyResearch:mainfrom
willeppy:patch-1
Open

Move string strip in serialize_row#5
willeppy wants to merge 1 commit into
HazyResearch:mainfrom
willeppy:patch-1

Conversation

@willeppy
Copy link
Copy Markdown

I'm using

  • Python version 3.10.4
  • Pandas version 1.4.4

and was running into an issue with the example run script from the Readme:

python3 -m fm_data_tasks.run_inference \
    --dry_run \
    --num_run 10 \
    --k 3 \
    --sample_method random \
    --data_dir data/datasets/entity_matching/structured/Fodors-Zagats

errors out with

AttributeError: 'int' object has no attribute 'strip'

Since the row value is not always a string.

Moving the strip to outside the string format should fix this.

I'm using 
- Python version 3.10.4
- Pandas version 1.4.4

and was running into an issue with the example run script from the Readme:
```bash
python3 -m fm_data_tasks.run_inference \
    --dry_run \
    --num_run 10 \
    --k 3 \
    --sample_method random \
    --data_dir data/datasets/entity_matching/structured/Fodors-Zagats
```

errors out with

```bash
AttributeError: 'int' object has no attribute 'strip'
```

Since the row value is not always a string. 

Moving the strip to outside the string format should fix this.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant