{"action":"created","issue":{"url":"https://api.github.com/repos/mindsdb/mindsdb/issues/33","repository_url":"https://api.github.com/repos/mindsdb/mindsdb","labels_url":"https://api.github.com/repos/mindsdb/mindsdb/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/mindsdb/mindsdb/issues/33/comments","events_url":"https://api.github.com/repos/mindsdb/mindsdb/issues/33/events","html_url":"https://github.com/mindsdb/mindsdb/issues/33","id":390046862,"node_id":"MDU6SXNzdWUzOTAwNDY4NjI=","number":33,"title":"Predicting \"from_data\" is giving error if the file has less than 30 rows","user":{"login":"surendra1472","id":27191684,"node_id":"MDQ6VXNlcjI3MTkxNjg0","avatar_url":"https://avatars0.githubusercontent.com/u/27191684?v=4","gravatar_id":"","url":"https://api.github.com/users/surendra1472","html_url":"https://github.com/surendra1472","followers_url":"https://api.github.com/users/surendra1472/followers","following_url":"https://api.github.com/users/surendra1472/following{/other_user}","gists_url":"https://api.github.com/users/surendra1472/gists{/gist_id}","starred_url":"https://api.github.com/users/surendra1472/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/surendra1472/subscriptions","organizations_url":"https://api.github.com/users/surendra1472/orgs","repos_url":"https://api.github.com/users/surendra1472/repos","events_url":"https://api.github.com/users/surendra1472/events{/privacy}","received_events_url":"https://api.github.com/users/surendra1472/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-12-12T03:11:41Z","updated_at":"2018-12-12T03:35:07Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"**Describe the bug**\r\nWhile predicting if use the option from_data to predict a list of values at a time from the file, if the file should have at least 30 rows(31 including title) otherwise means if it is less that 30 rows throwing error.\r\n\r\n**To Reproduce**\r\nSteps to reproduce the behavior:\r\n1. Train any model\r\n2. Predict using \"from_data\", but have less than 30 rows in the file\r\n3. Run prediction it will throw error\r\n\r\n**Expected behavior**\r\nIt should predict for whatever number of rows I pass\r\n\r\n**Screenshots**\r\n<img width=\"1439\" alt=\"lessthan30\" src=\"https://user-images.githubusercontent.com/27191684/49844614-b2933800-fde9-11e8-958b-f1b55bb54456.png\">\r\n\r\n\r\n**Desktop (please complete the following information):**\r\n - Mac OS\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mindsdb/mindsdb/issues/comments/446450078","html_url":"https://github.com/mindsdb/mindsdb/issues/33#issuecomment-446450078","issue_url":"https://api.github.com/repos/mindsdb/mindsdb/issues/33","id":446450078,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NjQ1MDA3OA==","user":{"login":"surendra1472","id":27191684,"node_id":"MDQ6VXNlcjI3MTkxNjg0","avatar_url":"https://avatars0.githubusercontent.com/u/27191684?v=4","gravatar_id":"","url":"https://api.github.com/users/surendra1472","html_url":"https://github.com/surendra1472","followers_url":"https://api.github.com/users/surendra1472/followers","following_url":"https://api.github.com/users/surendra1472/following{/other_user}","gists_url":"https://api.github.com/users/surendra1472/gists{/gist_id}","starred_url":"https://api.github.com/users/surendra1472/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/surendra1472/subscriptions","organizations_url":"https://api.github.com/users/surendra1472/orgs","repos_url":"https://api.github.com/users/surendra1472/repos","events_url":"https://api.github.com/users/surendra1472/events{/privacy}","received_events_url":"https://api.github.com/users/surendra1472/received_events","type":"User","site_admin":false},"created_at":"2018-12-12T03:35:07Z","updated_at":"2018-12-12T03:35:07Z","author_association":"CONTRIBUTOR","body":" def train_furniture(self):\r\n           self.mindsDb.learn(predict='Sales', model_name='my_furn_sales',\r\n                                          from_data='furniture_sales_model.csv')\r\n"}}
{"actor":{"display_login":"surendra1472"}}