This file contains hidden or 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
| import pandas as pd | |
| # Imagine this is our box of mixed LEGO pieces. | |
| df = pd.DataFrame({'Color': ['Red', 'Blue', 'Blue', 'Green', 'Green', 'Green'], | |
| 'Shape': ['Square', 'Square', 'Circle', 'Circle', 'Triangle', 'Triangle']}) | |
| # Here's how we remove the duplicates. | |
| df = df.drop_duplicates() | |
| print(df) |
This file contains hidden or 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
| import pandas as pd | |
| import random | |
| from faker import Faker | |
| # Initialize Faker | |
| fake = Faker() | |
| # Function to generate synthetic medical data | |
| def generate_synthetic_medical_data(num_records): | |
| # List to hold the data |
This file contains hidden or 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
| sudo apt-get update | |
| sudo apt-get install \ | |
| apt-transport-https \ | |
| ca-certificates \ | |
| curl \ | |
| gnupg-agent \ | |
| software-properties-common | |
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
| sudo apt-key fingerprint 0EBFCD88 | |
| sudo apt-get update |
This file contains hidden or 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 | |
| IP=$(hostname -i) | |
| echo $IP | |
| export IP |