This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
df.select([count(when(isnan(c) | col(c).isNull(), c)).alias(c) for c in df.columns]).show() | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Delete all containers | |
docker rm $(docker ps -a -q) | |
# Delete all images | |
docker rmi $(docker images -q) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# List all buckets | |
aws s3 ls | |
# List content of a bucket | |
aws s3 ls s3://<bucket> | |
# Create a bucket | |
aws s3 mb s3://<bucket> | |
# Copy into bucket | |
aws s3 cp <path> s3://<bucket> | |
# Copy from bucket | |
aws s3 cp s3://<bucket> <path> |