Skip to main content

iI need help with below code dataset.tail(4)::

dataset.tail(4)

                Date    Close
    1274    1/24/2019   4871.96
    1275    1/25/2019   4925.82
    1276    1/28/2019   4888.58
    1277    1/29/2019   4928.18

i wannaI want to split my dataset to trainbingtraining and testset

training_data=dataset[dataset.Date<datetime(2018, 1, 1)] i got below error any helptest using:

TypeError Traceback (most recent call last) in () ----> 1 training_data=dataset[dataset.Date<datetime(2018, 1, 1)] 2 training_data.tail(4)

training_data=dataset[dataset.Date<datetime(2018, 1, 1)]

TypeErrorBut I get the following error: 'module' object is not callable

TypeError                                 
Traceback (most recent call last)
<ipython-input-74-904bd8b45617> in <module>()
----> 1 training_data=dataset[dataset.Date<datetime(2018, 1, 1)]
      2 training_data.tail(4)

TypeError: 'module' object is not callable

i need help with below code dataset.tail(4):

            Date    Close
1274    1/24/2019   4871.96
1275    1/25/2019   4925.82
1276    1/28/2019   4888.58
1277    1/29/2019   4928.18

i wanna split dataset to trainbing and testset

training_data=dataset[dataset.Date<datetime(2018, 1, 1)] i got below error any help

TypeError Traceback (most recent call last) in () ----> 1 training_data=dataset[dataset.Date<datetime(2018, 1, 1)] 2 training_data.tail(4)

TypeError: 'module' object is not callable

I need help with below code:

dataset.tail(4)

                Date    Close
    1274    1/24/2019   4871.96
    1275    1/25/2019   4925.82
    1276    1/28/2019   4888.58
    1277    1/29/2019   4928.18

I want to split my dataset to training and test using:

training_data=dataset[dataset.Date<datetime(2018, 1, 1)]

But I get the following error:

TypeError                                 
Traceback (most recent call last)
<ipython-input-74-904bd8b45617> in <module>()
----> 1 training_data=dataset[dataset.Date<datetime(2018, 1, 1)]
      2 training_data.tail(4)

TypeError: 'module' object is not callable
added 3 characters in body; edited title
Source Link
Brian Spiering
  • 22.3k
  • 2
  • 28
  • 113

Training and test split for time series analysis

i need help with below code dataset.tail(4)dataset.tail(4):

            Date    Close
1274    1/24/2019   4871.96
1275    1/25/2019   4925.82
1276    1/28/2019   4888.58
1277    1/29/2019   4928.18

i wanna split dataset to trainbing and testset

training_data=dataset[dataset.Date<datetime(2018, 1, 1)] i got below error any help

TypeError Traceback (most recent call last) in () ----> 1 training_data=dataset[dataset.Date<datetime(2018, 1, 1)] 2 training_data.tail(4)

TypeError: 'module' object is not callable

time series analysis

i need help with below code dataset.tail(4)

            Date    Close
1274    1/24/2019   4871.96
1275    1/25/2019   4925.82
1276    1/28/2019   4888.58
1277    1/29/2019   4928.18

i wanna split dataset to trainbing and testset

training_data=dataset[dataset.Date<datetime(2018, 1, 1)] i got below error any help

TypeError Traceback (most recent call last) in () ----> 1 training_data=dataset[dataset.Date<datetime(2018, 1, 1)] 2 training_data.tail(4)

TypeError: 'module' object is not callable

Training and test split for time series analysis

i need help with below code dataset.tail(4):

            Date    Close
1274    1/24/2019   4871.96
1275    1/25/2019   4925.82
1276    1/28/2019   4888.58
1277    1/29/2019   4928.18

i wanna split dataset to trainbing and testset

training_data=dataset[dataset.Date<datetime(2018, 1, 1)] i got below error any help

TypeError Traceback (most recent call last) in () ----> 1 training_data=dataset[dataset.Date<datetime(2018, 1, 1)] 2 training_data.tail(4)

TypeError: 'module' object is not callable

Bumped by Community user
Bumped by Community user
Source Link
Rawia Sammout
  • 307
  • 1
  • 4
  • 18

time series analysis

i need help with below code dataset.tail(4)

            Date    Close
1274    1/24/2019   4871.96
1275    1/25/2019   4925.82
1276    1/28/2019   4888.58
1277    1/29/2019   4928.18

i wanna split dataset to trainbing and testset

training_data=dataset[dataset.Date<datetime(2018, 1, 1)] i got below error any help

TypeError Traceback (most recent call last) in () ----> 1 training_data=dataset[dataset.Date<datetime(2018, 1, 1)] 2 training_data.tail(4)

TypeError: 'module' object is not callable