We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Clean data by writing python scripts.
transform { Python { for key, value in input_dict.items(): if key == "name": cleaned_value = value.strip() if isinstance(value, str) else value elif key == "age": try: cleaned_value = int(value) except ValueError: cleaned_value = None elif key == "email": cleaned_value = value.lower() if isinstance(value, str) else value else: cleaned_value = value result.append(cleaned_value) } }
No response
The text was updated successfully, but these errors were encountered:
+1
Sorry, something went wrong.
Please assign it to me
FuYouJ
No branches or pull requests
Search before asking
Description
Clean data by writing python scripts.
transform {
Python {
for key, value in input_dict.items():
if key == "name":
cleaned_value = value.strip() if isinstance(value, str) else value
elif key == "age":
try:
cleaned_value = int(value)
except ValueError:
cleaned_value = None
elif key == "email":
cleaned_value = value.lower() if isinstance(value, str) else value
else:
cleaned_value = value
result.append(cleaned_value)
}
}
Usage Scenario
No response
Related issues
No response
Are you willing to submit a PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: