1.1.1 • Published 3 years ago

react-pandas-table v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

react-pandas-table

A library designed to render Python Pandas tables in a React environment.

NPM JavaScript Style Guide

Install

npm install --save react-pandas-table

Example Usage

import React from 'react'

import { BasicTable } from 'react-pandas-table'

const ExampleComponent = () => {
  return (
    <BasicTable
      data={exampleData}
      includeIndexCol={false}
      reformatCols={[
        {
          col: 'Exmaple Date Col',
          type: 'date',
          locale: 'en-GB',
          params: {
            year: 'numeric',
            month: 'long',
            day: 'numeric'
          }
        },
        {
          col: 'Example Currency Col',
          type: 'number',
          locale: 'en-GB',
          params: {
            style: 'currency',
            currency: 'EUR'
          }
        },
        {
          col: 'Example Percentage Col',
          type: 'number',
          locale: 'en-GB',
          params: {
            style: 'percent',
            minimumFractionDigits: 2
          }
        }
      ]}
      total={['Example Currency Col', 'Example Percentage Col']}
      headerStyles={{
        backgroundColor: '#000000',
        color: '#FFFFFF',
        padding: 10
      }}
      cellStyles={{
        backgroundColor: '#F3F4F6',
        color: '#000000',
        padding: 10
      }}
    />
  )
}

License

MIT © finnmaguire1998

1.1.1

3 years ago

1.1.0

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.2.7

3 years ago

0.2.6

3 years ago

0.2.5

3 years ago

0.2.4

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.0

3 years ago