Last active
August 26, 2018 07:23
-
-
Save mareklinka/d9227e2f8d863d8aaf7c00de7a3339eb to your computer and use it in GitHub Desktop.
Concat
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
values = dataset.values | |
c = np.concatenate((values[4:,:], values[3:-1,:]), axis=1) | |
c = np.concatenate((c[:-1,:], values[2:-3,:]), axis=1) | |
c = np.concatenate((c[:-1,:], values[1:-5,:]), axis=1) | |
c = np.concatenate((c[:-1,:], values[:-7,:]), axis=1) | |
interleave = pd.DataFrame(data=c, dtype=float) | |
interleave.columns = ['pressure', 'wh', 'wd', 'rain', 'dust', 'pressure-1', 'wh-1', 'wd-1', 'rain-1', 'dust-1', 'pressure-2', 'wh-2', 'wd-2', 'rain-2', 'dust-2', 'pressure-3','wh-3', 'wd-3', 'rain-3', 'dust-3', 'pressure-4','wh-4', 'wd-4', 'rain-4', 'dust-4'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment