0
I have a problem in python, as I create independent dataframe? What can I think of:
>>> PREMISSAS['QTD_ESTOQUE_MEDIO']
0 628.5
1 20202.5
2 42902.0
3 50036.0
4 8561.5
...
12646 14356.5
12647 1236.0
12648 9997.5
12649 5181.5
12650 5061.5
>>> PREMISSAS_STK_MAIS_5 = PREMISSAS
>>> PREMISSAS_STK_MAIS_10 = PREMISSAS
>>> PREMISSAS_STK_MENOS_5 = PREMISSAS
>>> PREMISSAS_STK_MENOS_10 = PREMISSAS
>>>
>>> PREMISSAS_STK_MAIS_5['QTD_ESTOQUE_MEDIO'] = PREMISSAS_STK_MAIS_5['QTD_ESTOQUE_MEDIO']*1.05
>>> PREMISSAS_STK_MAIS_10['QTD_ESTOQUE_MEDIO'] = PREMISSAS_STK_MAIS_10['QTD_ESTOQUE_MEDIO']*1.1
>>> PREMISSAS_STK_MENOS_5['QTD_ESTOQUE_MEDIO'] = PREMISSAS_STK_MENOS_5['QTD_ESTOQUE_MEDIO']*0.95
>>> PREMISSAS_STK_MENOS_10['QTD_ESTOQUE_MEDIO'] = PREMISSAS_STK_MENOS_10['QTD_ESTOQUE_MEDIO']*0.9
>>> PREMISSAS['QTD_ESTOQUE_MEDIO']
0 620.659463
1 19950.473813
2 42366.797550
3 49411.800900
4 8454.695288
...
12646 14177.402663
12647 1220.580900
12648 9872.781188
12649 5116.860788
12650 4998.357788
Name: QTD_ESTOQUE_MEDIO, Length: 12651, dtype: float64
>>> PREMISSAS_STK_MAIS_5['QTD_ESTOQUE_MEDIO']
0 620.659463
1 19950.473813
2 42366.797550
3 49411.800900
4 8454.695288
...
12646 14177.402663
12647 1220.580900
12648 9872.781188
12649 5116.860788
12650 4998.357788
Name: QTD_ESTOQUE_MEDIO, Length: 12651, dtype: float64
>>> PREMISSAS_STK_MENOS_10['QTD_ESTOQUE_MEDIO']
0 620.659463
1 19950.473813
2 42366.797550
3 49411.800900
4 8454.695288
...
12646 14177.402663
12647 1220.580900
12648 9872.781188
12649 5116.860788
12650 4998.357788
Name: QTD_ESTOQUE_MEDIO, Length: 12651, dtype: float64
My goal is to create data frames with different scenarios.
Dear, to better understand about changeable and immutable objects. Read the answer of this post
– Paulo Marques