Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move string strip in serialize_row #5

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

willeppy
Copy link

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