From selvi.dct at gmail.com Mon Jul 4 12:26:40 2022 From: selvi.dct at gmail.com (selvi dct) Date: Mon, 4 Jul 2022 21:56:40 +0530 Subject: [Chennaipy] Chennaipy - Monday Module - 04 Jul 2022 Message-ID: Date: 04 Jul 2022 Module: pydataset Installation: pip install pydataset About: Access various available datasets instantly without going through the hassle of searching, downloading and reading. Sample Source Code: from pydataset import data # To load a dataset titanic = data('titanic') # To display the documentation of a dataset data('titanic', show_doc=True) # To see the available datasets print("Available Dataset:") print(data()) Execution: $ python pydataset_sample.py Output: titanic PyDataset Documentation (adopted from R Documentation. The displayed examples are in R) ## titanic ### Description The data is an observation-based version of the 1912 Titanic passenger survival log, ### Usage data(titanic) ### Format A data frame with 1316 observations on the following 4 variables. `class` a factor with levels `1st class` `2nd class` `3rd class` `crew` `age` a factor with levels `child` `adults` `sex` a factor with levels `women` `man` `survived` a factor with levels `no` `yes` ### Details titanic is saved as a data frame. Used to assess risk ratios ### Source Found in many other texts ### References Hilbe, Joseph M (2014), Modeling Count Data, Cambridge University Press Hilbe, Joseph M (2007, 2011), Negative Binomial Regression, Cambridge University Press Hilbe, Joseph M (2009), Logistic Regression Models, Chapman & Hall/CRC ### Examples data(titanic) titanic$survival <- titanic$survived == "yes" glmlr <- glm(survival ~ age + sex + factor(class), family=binomial, data=titanic) summary(glmlr) Available Dataset: dataset_id title 0 AirPassengers Monthly Airline Passenger Numbers 1949-1960 1 BJsales Sales Data with Leading Indicator 2 BOD Biochemical Oxygen Demand 3 Formaldehyde Determination of Formaldehyde 4 HairEyeColor Hair and Eye Color of Statistics Students .. ... ... 752 VerbAgg Verbal Aggression item responses 753 cake Breakage Angle of Chocolate Cakes 754 cbpp Contagious bovine pleuropneumonia 755 grouseticks Data on red grouse ticks from Elston et al. 2001 756 sleepstudy Reaction times in a sleep deprivation study [757 rows x 2 columns] Reference: https://pypi.org/project/pydataset/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From selvi.dct at gmail.com Mon Jul 11 12:52:12 2022 From: selvi.dct at gmail.com (selvi dct) Date: Mon, 11 Jul 2022 22:22:12 +0530 Subject: [Chennaipy] Chennaipy - Monday Module - 11 Jul 2022 Message-ID: Date: 11 Jul 2022 Module: emoji Installation: pip install emoji About: Emoji for Python. The entire set of Emoji codes as defined by the unicode consortium is supported in addition to a bunch of aliases. By default, only the official list is enabled but doing emoji.emojize(language='alias') enables both the full list and aliases. Sample Source Code: import emoji print(emoji.emojize('Python is :thumbs_up:')) print(emoji.emojize('Python is :thumbsup:', language='alias')) print(emoji.demojize('Python is ?')) print(emoji.emojize("Python is fun :red_heart:")) print(emoji.emojize("Python is fun :red_heart:", variant="emoji_type")) print(emoji.is_emoji("?")) Execution: $ python emoji_sample.py Output: Python is ? Python is ? Python is :thumbs_up: Python is fun ?? Python is fun ?? True Reference: https://pypi.org/project/emoji/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From selvi.dct at gmail.com Mon Jul 18 13:53:49 2022 From: selvi.dct at gmail.com (selvi dct) Date: Mon, 18 Jul 2022 23:23:49 +0530 Subject: [Chennaipy] Chennaipy - Monday Module - 18 Jul 2022 Message-ID: Date: 18 Jul 2022 Module: moviepy Installation: pip install moviepy About: MoviePy is a Python module for video editing, which can be used for basic operations (like cuts, concatenations, title insertions), video compositing (a.k.a. non-linear editing), video processing, or to create advanced effects. It can read and write the most common video formats, including GIF. Sample Source Code: # Blurring all frames of a video from skimage.filters import gaussian_filter from moviepy.editor import VideoFileClip def blur(image): """ Returns a blurred (radius=2 pixels) version of the image """ return gaussian_filter(image.astype(float), sigma=2) clip = VideoFileClip("my_video.mp4") clip_blurred = clip.fl_image( blur ) clip_blurred.write_videofile("blurred_video.mp4") Execution: $ python moviepy_sample.py Reference: https://pypi.org/project/moviepy/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From sakthirengaraj at gmail.com Fri Jul 22 05:29:48 2022 From: sakthirengaraj at gmail.com (Rengaraj D) Date: Fri, 22 Jul 2022 14:59:48 +0530 Subject: [Chennaipy] July meetup RSVP required Message-ID: Hi Everyone, Welcome to the July month meetup. # Schedule * Let's Build it, Fast API * Dockerizing and building Devops life cycle for saythanks.io * Data analysis using Titanic dataset * Lightning talks # Venue * Online * RSVP to get the meeting link https://www.meetup.com/chennaipy/events/287088231/ # Date & Time * 23/07/2022 * 3:00 PM to 5:00 PM # New to Python ? * Learn Python in 30 minutes https://learnxinyminutes.com/docs/python/ * How to think like a computer Scientist? http://openbookproject.net/thinkcs/python/english3e/ Regards Rengaraj -------------- next part -------------- An HTML attachment was scrubbed... URL: From mm_nmc at yahoo.com Sun Jul 24 00:09:01 2022 From: mm_nmc at yahoo.com (MURALIDHARAN MURUGESAN) Date: Sun, 24 Jul 2022 04:09:01 +0000 (UTC) Subject: [Chennaipy] minutes of the meeting dated 23-07-2022 References: <860924768.765298.1658635741684.ref@mail.yahoo.com> Message-ID: <860924768.765298.1658635741684@mail.yahoo.com> Dear Members pl find the minutes of the meeting dated 23-07-2022 Minutes of the meeting dated 23-07-2022 Chennaipy May 2022 meet up ? was convened on 23-07-2022? at 3:00 p.m. through online.(jitsi platform)? Mr Rangaraj and Mr.Vijayakumar? chaired the meeting. Around 25? members attended the meeting. After the introduction of members the talks followed in order. [3.15] Mr Vijaya Kumar - Introduction - He briefed the members about the meetup? and its objectives.? ? [3.20] Let is buildit Fast API? -? Speaker: Mr.D.Rengaraj - Senior Software Engineer at Intelsat - FastAPI is a modern, high-performance web framework for building APIs with Python based on standard type hints. - It is Asynchronous and comparatively faster than Flask - Best to build API and it uses pydantic for data validation ? [3.45] ?Dockerizing and building Devops life cycle for saythanks.io - Harshil -? - He discussed about open source project framework like jenkins,grafana, ansible - Also he elaborated about devops life cycle and dockerizing ? ? [4.10] Data Analysis using pandas with titanic dataset -? Speaker: Dr.Muralidharan, Associate Professor and Head, NMC, Trichy - Preprocessing titanic dataset - Using pandas,numpy,matplotlib and seaborn libraries? - Try to find out gender classification, financial status of the passengers and possible surviviors - Creating visuals for answering the questions ? [4.35] Lighting Talks - memray? -? Speaker: Deepak - Memray is a memory profiler for Python. It can track memory allocations in Python code, in native extension modules, and in the Python interpreter itself. It can generate several different types of reports to help you analyze the captured memory usage data. While commonly used as a CLI tool, it can also be used as a library to perform more fine-grained profiling tasks. [4.45]? Saythanks.io? -? Speaker: Pavitra - Spoke on open source projects and requests contribution from members [5.00] Mr.Rengaraj proposed the vote of thanks? The meeting ended at 5.00 PM Thanking you Dr.M.MURALIDHARANHEADDEPARTMENT OF COMPUTER SCIENCENEHRU MEMORIAL COLLEGE[AUTONOMOUS]PUTHANAMPATTI - 621 007TIRUCHIRAPPALLI DISTRICTPHONE : 04327 234 8100431 2712247[RES]94866 46708mm_nmc @yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: