Giter Site home page Giter Site logo

smabdullah / feature_creation Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 27 KB

This project is multipart. In the first part, I will explore how to create some new features and add those to an existing dataset. The other part handles interactive data visualisation using Plotly-dash

Python 100.00%
feature-engineering

feature_creation's Introduction

New features creation of an existing dataset

This project talks about how we can create some features based on what we have in a dataset. I will demonastrate through a stock dataset and show how to create multiple new features and add them in the existing dataset.

What you will learn from this project

This project mainly convers data processing using Pandas. By checking this project, one may learn the following topics

  1. How to create a new column in a dataframe
  2. How to manipulate a column from other columns
  3. How to create columns based on certain conditions
  4. How sliding window works on Pandas
  5. How to save the dataframe as a CSV file.

The scenario for creating new features are presented below

Money Flow Index

The money flow index (MFI) is a momentum indicator that measures the inflow and outflow of money into and out of a security over a specific period of time. It is computed as below, and can assume values between 0 to 100.

Money Flow Index = 100 * Money Ration/(1+Money Ratio)
Money Ratio = Positive Money Flow Sum / Negative Money Flow Sum
Money Flow = Typical Price * Volume
Typical Price = (High Price + Low Price + Close Price) / 3

The concepts of Positive and Negative Money Flow are defined as follows: on any given day, the Money Flow is denoted positive/negative if the Typical Price is higher/lower than the previous day's Typical Price. If the typical price is unchanged that that day's data are discarded. The Positive Money Flow Sum is the sum of all the Positive Money Flow over a sliding window of n days. The Negative Money Flow Sum is similarly defined.

feature_creation's People

Contributors

smabdullah avatar

Watchers

James Cloos avatar  avatar

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.