Git Product home page Git Product logo

python--snippets's Introduction

Python--snippets

Here are some pyhton code snippets that helps you code in just a few lines of code

sidetable.ipynb-Sidetable creates a frequency distribution table,missing value table, and their sums based on selected columns.Consider we have a dataset that contains some measurements on a categorical variable (e.g. model). We have many different models and each model has many observations (rows). By using sidetable, we get an overview that shows how much each model occupies in the dataset. This can also be achieved using value_counts function of pandas but sidetable is more informative as we will see in the examples.

Pandas_Profiling.ipynb-Pandas_Profiling does a quick analysis of your data with just one line of code. It tells you the number of missing values, which variables are categorical, numerical,boolen..etc, finds their cardinality, and even finds the correlation of the numerical variables at ease.

categorical.ipynb-Extracting categorical variables and numerical variables from the dataset can be done simply by just using one line of code.

Quandle.ipynb-Quandl unifies financial and economic datasets from hundreds of publishers on a single user-friendly platform.Most datasets on Quandl are available directly in Python, using the Quandl Python module.Here I have obtained the closing prices stock of apple, Facebook, Walmart, Google, and Tesla for my desired dates.

Multiple_Regreesion.ipynb-1. Seaborn charts to visualize the variable distributions to check if they are normally distributed 2. Quantiles to reduce the outliers 3. Converting exponential distribution to linear using log transformation 4. VIF to check multi-collinearity

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.