|
1 | 1 | # 4-2. Frame - Transform
|
2 | 2 |
|
| 3 | +<figure><img src="../../.gitbook/assets/image (211).png" alt="" width="452"><figcaption></figcaption></figure> |
3 | 4 |
|
4 |
| - |
5 |
| -<figure><img src="../../.gitbook/assets/image (112).png" alt=""><figcaption></figcaption></figure> |
6 |
| - |
7 |
| -1. _**Set Index**_ sets a chosen column as the index. |
8 |
| -2. _**Reset Index**_ converts the index back into a column. |
9 |
| -3. _**Data Shift**_ shifts the data of one or multiple selected columns by the specified amount. |
| 5 | +1. _**Set index**_: Set the selected column as the index. |
| 6 | +2. _**Reset index**_: Converts the index back to a column. |
| 7 | +3. _**Data shift**_: Shifts the data in the selected column up or down. |
10 | 8 |
|
11 | 9 |
|
12 | 10 |
|
13 | 11 | ***
|
14 | 12 |
|
15 | 13 | ### Data Shift
|
16 | 14 |
|
| 15 | +<figure><img src="../../.gitbook/assets/image (212).png" alt="" width="467"><figcaption></figcaption></figure> |
17 | 16 |
|
18 |
| - |
19 |
| -<figure><img src="../../.gitbook/assets/image (113).png" alt="" width="563"><figcaption></figcaption></figure> |
20 |
| - |
21 |
| -1. _**Periods**_: Enter how much to shift the data in the selected column(s).  |
22 |
| - |
23 |
| -  1-1. Use a positive value to shift down and a negative value to shift up. |
24 |
| - |
25 |
| -2. _**Frequency**_: Set the unit for the value entered in Period. |
26 |
| - |
27 |
| -  Ex. Period: 3, Frequency: Day -> Shift by 3 days |
28 |
| - |
29 |
| -  2-1. There should be periodic information in the index. If there is no specific periodicity, you can skip setting the frequency. |
30 |
| - |
31 |
| -3. _**Fill Value**_: Enter the value to fill the empty spaces created by the data shift. |
| 17 | +1. _**Periods**_: Set the amount by which you want to move the data. Use a positive value to move it down, and a negative value to move it up. |
| 18 | +2. Set the units for the values entered in _**Frequency**._ If it's not time data, omit this setting. |
| 19 | + 1. (Ex) Periods: 3, Frequency: minute -> Move down by 3 minutes |
| 20 | + 2. (Ex) Periods: 3, Frequency: X -> Move down 3 spaces |
| 21 | +3. _**Fill value**_: Enter a value to fill the empty space created by moving the data. |
32 | 22 |
|
0 commit comments