Code Monkey home page Code Monkey logo

pyspark_with_large_txt_file's Introduction

Pyspark_with_large_txt_file

How easy is it to read large text files with pyspark? In this repository I show you some source codes that you can use to practice python with spark and text files.

  1. For this example, I'll use these text files found in the "1_input" folder:

image

  1. Both files are large, not because of the number of rows but because of the number of characters per row:

image

image

  1. I want two data from these files, the supply number and the flag if this supply has digital delivery:
  • The supply number is in position 2 and has 7 characters.

image

  • The "digital delivery" flag is at position 13 337 and has 1 characters.

image

  1. To upload these files and merge both, I'll be using Python and Spark.

image

pyspark_with_large_txt_file's People

Contributors

yucaret avatar

Stargazers

Carlos Huapaya avatar

Watchers

Kostas Georgiou 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.