Skip to main content

Forks Stargazers

LinkedIn


Logo

WikiFrame

Convert all csv files in a folder to a diccionary of dataframe and more!.
Explore the docs »

Table of Contents
  1. About The Project
  2. Installation
  3. Usage
  4. Contributing
  5. License

About The Project

WikiFrame scan all the .csv files in a folder and convert into a diccionary of dataframe, This package accept different csv delimiter and encodings. Also if you want to add transform dataframe-functions, you can add it!.

(back to top)

Installation

  1. Install from PyPI
    pip install wikiframe
    

(back to top)

Usage

Extractor:

This function will extract all the csv files in the folder and convert them to a dictionary of dataframe.

    Parameters:
    -----------

    sep : Especifies the delimiter of the csv file. (default [',',';', ':', '|', '\t'])
    encoding : Especifies the encoding of the csv file. (if not especified, it will be detected automatically)
    func : A list of functions that will be applied to the dataframe. (e.g. [func1, func2, func3])
    func_custom : A dictionary of functions that will be applied to the especific dataframe. (e.g. {'dataframe_1':[func1,func2], 'dataframe2':func3})
    verbose : If True, will print the name of the dataframe that is transformed. (default False)

    Returns:
    --------
    data_dict : A dictionary of dataframe.

    Notes:
    ------
    The order of the dataframe in the dictionary is the same as the order of the csv files in the folder.
    func could be a list of functions or a single function.

Example:

from wiki_tools import Extractor # Import the Extractor function

extractor = Extractor(path='path/to/folder') # path to folder with csv files

data_dictonary = extractor.extract_from_csv() # extract all csv files on a folder and convert into a dictionary of dataframe

Say:

A cow helper function to say something Parameters: ----------- something: A string to say in console

Example:

    from wiki_tools.Say import cow_says_good, cow_says_good# Import the Say function    
    
    cow_says_good('Hola') # Say something in cow speak
    cow_says_error('Hola) # Say something in cow speak

Output:

< Hello World >
 -------------
        \   ^__^
         \  (oo)\_______
            (__)\ good🙈 )\/\
                ||----w |
                ||     ||
 _____________
< Hello World >
 -------------
        \   ^__^
         \  (oo)\_______
            (__)\ good🙈 )\/\
                ||----w |
                ||     ||

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

License

Distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

Metadata

Release files for wikiframe 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for wikiframe 0.0.6
File Interpreter ABI Platform
wikiframe-0.0.6-py3-none-any.whl Python 3 none any Details

Release files / wikiframe-0.0.6-py3-none-any.whl

Download URL wikiframe-0.0.6-py3-none-any.whl
Size 7.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
54a968f15c8ca444498e9408920daaee3c4dbc69d5a5e7eb83d03ce2112e9e63
BLAKE2b-256 checksum
How to use checksums
85e6cf961bb7df53c45dfab7dd590632fcdf35e50c6f193ac2438cf827b923fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.5

Security for wikiframe 0.0.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page