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
"""making a dataframe""" | |
df = pd.DataFrame([[1, 2], [3, 4]], columns=list('AB')) | |
"""quick way to create an interesting data frame to try things out""" | |
df = pd.DataFrame(np.random.randn(5, 4), columns=['a', 'b', 'c', 'd']) | |
"""convert a dictionary into a DataFrame""" | |
"""make the keys into columns""" | |
df = pd.DataFrame(dic, index=[0]) |
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
#!/usr/bin/env python | |
# shell commands being automated. | |
# w | |
# aws ec2 stop-instances --instance-id INSTANCE_ID | |
""" | |
The script is the easy part, installing it into the unfriendly(imo) cron system and | |
making all the permissions and paths are set correctly is another issue altogether. |
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
#!/usr/bin/env python | |
# shell commands being automated. | |
# w | |
# aws ec2 stop-instances --instance-id INSTANCE_ID | |
# az vm deallocate --name NAME --resource-group RESOURCE_GROUP | |
""" | |
The script is the easy part, installing it into the unfriendly(imo) cron system and |
OlderNewer