About data science was just a joke)
Python on it will be one row
playbacks = filter (lambda _data: _data [ 'media_category'] not in [ 'promo'], data)
Gerga, Спасибо за ответ. В данном варианте вы исходные данные сначала будете должны преобразовать в строку и уже потом по ней делать поиск и замену, правильно?
Gerga, Thanks for the reply. In this embodiment, the source data, you will first need to convert to a string, and then later on it to do a search and replace, right?
Если бы я мог фильтровать на уровне базы - я бы так и сделал, я работаю уже с полученными данными и не бегаю в базу каждый раз. Я же не стал уточнять, что данные хранятся в DynamoDB - noSQL базе и твой запрос вообще никак не поможет. Есть разные варианты и условия - в задаче нужно обработать один из них.
Если не хватает знаний - не стоит и лезть с непонятными ответами.
If I could filter at the base - I would have done, I have been working with the findings and do not run in each time base. I did not specify that the data stored in DynamoDB - noSQL basis of your request, and generally does not help. There are different options and conditions - for the problem to be treated is one of them.
If you do not have enough knowledge - do not climb and with unclear answers.
Есть условие задачи, есть исходные данные - твой ответ ни разу не подходит под них. Я не вижу код, который могу запустить и посмотреть как он отрабатывает---------- Добавлено 13.06.2020 в 15:24 ----------
Да, не JSON, это IterableObject, попытался универсально упростить. Исходные данные можно рассматривать как список json-ов, для упрощения и решать исходя из этого, что бы не привязываться к питоновским понятиям
There is a condition of the problem, there is the original data - your answer is never fit them. I do not see the code that can run and see how it fulfills ---------- Posted 13.06.2020 at 15:24 ----------
Yes, not the JSON, it IterableObject, tried universally simplified. The original data can be viewed as a list of json-s, to simplify and resolve on this basis, that would not be tied to the concepts of Python
вопрос в конце - лишний. Понятно что можно, но хотелось бы чтоб на выходе был нужный мне списиок джейсонов
2009/11/10 23:00:00 {0 clip } 2009/11/10 23:00:00 {4 promo} 2009/11/10 23:00:00 {3 start } 2009/11/10 23:00:00 {3 video } 2009/11/10 23:00:00 {3 anime } 2009/11/10 23:00:00 {4 clip }
question at the end - once. It is clear that it is possible, but it would be desirable that the output was correct me spisiok Jason
2009/11/10 23:00:00 clip} {0 2009/11/10 23:00:00 {4 promo} 2009/11/10 23:00:00 {3 start} 2009/11/10 23:00:00 video} {3 2009/11/10 23:00:00 {3 anime} 2009/11/10 23:00:00 clip} {4
Есть очень хороший совет - если нечего сказать, то лучше промолчать, за умного сойдешь,
справься хотя бы с этой
Пока от пхпэшников ни одного решения...