%3Aformat(webp)%2Fi.ytimg.com%252Fvi%252FeMOA1pPVUc4%252Fmaxresdefault.jpg&w=1139&q=75)
Описание:
Practice your Python Pandas data science skills with problems on StrataScratch! https://stratascratch.com/?via=keith In this video we use Python Pandas & Python Matplotlib to analyze and answer business questions about 12 months worth of sales data. The data contains hundreds of thousands of electronics store purchases broken down by month, product type, cost, purchase address, etc. Setup! Github source code & data: https://github.com/KeithGalli/Pandas-Data-Science-Tasks Installing Jupyter Notebook: https://docs.jupyter.org/en/latest/install.html Installing Pandas library: https://pandas.pydata.org/pandas-docs/stable/install.html Check out the first video I did on Pandas: https://www.youtube.com/watch?v=vmEHCJofslg Check out the videos I did on Matplotlib: https://www.youtube.com/watch?v=DAQNHzOcO5A https://www.youtube.com/watch?v=0P7QnIQDBJY Detailed video description! (timeline can be found in comments) We start by cleaning our data. Tasks during this section include: - Drop NaN values from DataFrame - Removing rows based on a condition - Change the type of columns (to_numeric, to_datetime, astype) Once we have cleaned up our data a bit, we move the data exploration section. In this section we explore 5 high level business questions related to our data: - What was the best month for sales? How much was earned that month? - What city sold the most product? - What time should we display advertisemens to maximize the likelihood of customer’s buying product? - What products are most often sold together? - What product sold the most? Why do you think it sold the most? To answer these questions we walk through many different pandas & matplotlib methods. They include: - Concatenating multiple csvs together to create a new DataFrame (pd.concat) - Adding columns - Parsing cells as strings to make new columns (.str) - Using the .apply() method - Using groupby to perform aggregate analysis - Plotting bar charts and lines graphs to visualize our results - Labeling our graphs If you enjoy this video, make sure to leave it a like and subscribe to not miss any future similar tutorials :). Check out the new "solving real world data science tasks" video I posted! https://www.youtube.com/watch?v=Ewgy-G9cmbg --------------------------------------------- Follow me on social media! Instagram | https://www.facebook.com/unsupportedbrowser Twitter | https://twitter.com/keithgalli --------------------------------------------- Video Timeline! 0:00 - Intro 1:22 - Downloading the Data 2:57 - Getting started with the code (Jupyter Notebook) Task #1: Merging 12 csvs into a single dataframe (3:35) 4:25 - Read single CSV file 5:44 - List all files in a directory 7:06 - Concatenating files 11:00 - Reading in Updated dataframe Task #2: Add a Month column (12:48) 14:12 - Parse string in Pandas cell (.str) Cleaning our data! 17:31 - Drop NaN values from df 21:25 - Remove rows based on condition Task #3: Add a sales column (24:58) 25:58 - Another way to convert a column to numeric (ints & floats) Question #1: What was the best month for sales? (29:20) 30:35 - Visualizing our results with bar chart in matplotlib Question #2: What city sold the most product? (34:17) 35:32 - Add a city column 36:10 - Using the .apply() method (super useful!!) 40:35 - Why do we use the lambda x ? 40:57 - Dropping a column 46:45 - Answering the question (using groupby) 47:34 - Plotting our results Question #3: What time should we display advertisements to maximize the likelihood of purchases? (52:13) 53:16 - Using to_datetime() method 56:01 - Creating hour & minute columns 58:17 - Matplotlib line graph to plot our results 1:00:15 - Interpreting our results Question #4: What products are most often sold together? (1:02:17) 1:03:31 - Finding duplicate values in our DataFrame 1:05:43 - Use transform() method to join values from two rows into a single row 1:08:00 - Dropping rows with duplicate values 1:09:39 - Counting pairs of products (itertools, collections) Question #5: What product sold the most? Why do you think it did? (1:14:04) 1:15:28 - Graphing data 1:18:41 - Overlaying a second Y-axis on existing chart 1:23:41 - Interpreting our results --------------------- If you are curious to learn how I make my tutorials, check out this video: https://www.youtube.com/watch?v=LEO4igyXbLs Join the Python Army to get access to perks! YouTube - https://www.youtube.com/channel/UCq6XkhO5SZ66N04IcPbqNcw/join Patreon - https://www.patreon.com/keithgalli *I use affiliate links on the products that I recommend. I may earn a purchase commission or a referral bonus from the usage of these links.
Медиафайл доступен в форматах
Сайт http://univideos.ru/ — лучший способ скачать видео или отдельно аудиодорожку, если хочется обойтись без установки программ и расширений.
Расширение UDL Helper — удобная кнопка, которая органично встраивается на сайты YouTube, Instagram и OK.ru для быстрого скачивания контента.
Программа UDL Client (для Windows) — самое мощное решение, поддерживающее более 900 сайтов, социальных сетей и видеохостингов, а также любое качество видео, которое доступно в источнике.
UDL Lite — представляет собой удобный доступ к сайту с мобильного устройства. С его помощью вы можете легко скачивать видео прямо на смартфон.
Наилучшее качество имеют форматы FullHD (1080p), 2K (1440p), 4K (2160p) и 8K (4320p). Чем больше разрешение вашего экрана, тем выше должно быть качество видео. Однако следует учесть и другие факторы: скорость скачивания, количество свободного места, а также производительность устройства при воспроизведении.
Полностью зависать браузер/компьютер не должен! Если это произошло, просьба сообщить об этом, указав ссылку на видео. Иногда видео нельзя скачать напрямую в подходящем формате, поэтому мы добавили возможность конвертации файла в нужный формат. В отдельных случаях этот процесс может активно использовать ресурсы компьютера.
Вы можете скачать видео на свой смартфон с помощью сайта или pwa-приложения UDL Lite. Также есть возможность отправить ссылку на скачивание через QR-код с помощью расширения UDL Helper.
Самый удобный способ — воспользоваться программой UDL Client, которая поддерживает конвертацию видео в формат MP3. В некоторых случаях MP3 можно скачать и через расширение UDL Helper.
Эта функция доступна в расширении UDL Helper. Убедитесь, что в настройках отмечен пункт «Отображать кнопку сохранения скриншота из видео». В правом нижнем углу плеера левее иконки «Настройки» должна появиться иконка камеры, по нажатию на которую текущий кадр из видео будет сохранён на ваш компьютер в формате JPEG.
Для этого понадобится VLC-плеер, скачать его можно бесплатно с официального сайта https://www.videolan.org/vlc/
Как воспроизвести потоковое видео через VLC-плеер:
Для скачивания потокового видео через VLC-плеер необходимо его конвертировать:
Внимание: данный способ скачивания больше не работает с большинством видеороликов с YouTube.
Нисколько. Наши сервисы абсолютно бесплатны для всех пользователей. Здесь нет PRO подписок, нет ограничений на количество или максимальную длину скачиваемого видео.