mirror of
https://github.com/KevinMidboe/tableprint.git
synced 2025-10-29 18:00:16 +00:00
Removed README.md dependency in setup.py
This commit is contained in:
@@ -10,13 +10,13 @@ import numpy as np
|
||||
__all__ = ['table', 'row', 'header', 'frame']
|
||||
|
||||
|
||||
def frame(df, options=None):
|
||||
def frame(dataframe, options=None):
|
||||
"""
|
||||
Print an ASCII table using the given pandas DataFrame
|
||||
|
||||
Parameters
|
||||
----------
|
||||
df : DataFrame
|
||||
dataframe : DataFrame
|
||||
A pandas DataFrame with consisting of the table to print
|
||||
|
||||
options : dict
|
||||
@@ -31,7 +31,7 @@ def frame(df, options=None):
|
||||
|
||||
"""
|
||||
|
||||
table(np.array(df), list(df.columns), options)
|
||||
table(np.array(dataframe), list(df.columns), options)
|
||||
|
||||
|
||||
def table(data, headers, options=None):
|
||||
@@ -200,4 +200,4 @@ def hr(ncols, column_width=10, corner_char='+', line_char='-'):
|
||||
|
||||
hrstr = corner_char.join([('{:%s^%i}' % (line_char, column_width+2)).format('') for _ in range(ncols)])
|
||||
|
||||
return corner_char + hrstr[1:-1] + corner_char
|
||||
return corner_char + hrstr[1:-1] + corner_char
|
||||
|
||||
Reference in New Issue
Block a user