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
I: Bus=0019 Vendor=0000 Product=0005 Version=0000 | |
N: Name="Lid Switch" | |
P: Phys=PNP0C0D/button/input0 | |
S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0D:00/input/input0 | |
U: Uniq= | |
H: Handlers=event0 | |
B: PROP=0 | |
B: EV=21 | |
B: SW=1 |
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
#datatype measurement | tag | double | dateTime:RFC3339 | |
---|---|---|---|---|
m | host | used_percent | time | |
mem | host1 | 64.23 | 2020-01-01T00:00:00Z | |
mem | host2 | 72.01 | 2020-01-01T00:00:00Z | |
mem | host1 | 62.61 | 2020-01-01T00:00:10Z | |
mem | host2 | 72.98 | 2020-01-01T00:00:10Z | |
mem | host1 | 63.40 | 2020-01-01T00:00:20Z | |
mem | host2 | 73.77 | 2020-01-01T00:00:20Z |
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
import pandas as pd | |
import numpy as np | |
df = pd.DataFrame({'date': ['Dec 21', 'Dec 31', 'Jan 01', 'Jan 11', 'Dec 21', 'Dec 31', 'Jan 1', 'Jan 11']}) | |
# Convert to datetime | |
df = pd.to_datetime(df['date'], format="%b %d") | |
first_year = 2020 | |
years_to_add = pd.offsets.DateOffset(years=first_year - 1900) |