Created
June 16, 2023 05:57
-
-
Save mojinsan/81ee87888f1c4bd494a98943875fce88 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import argparse | |
import pprint | |
import pandas as pd | |
def main(feather): | |
df = pd.read_feather(feather) | |
with pd.option_context( | |
"display.max_rows", | |
None, | |
"display.max_columns", | |
None, | |
"expand_frame_repr", | |
False, | |
): | |
pprint.pprint(df) | |
if __name__ == "__main__": | |
parser = argparse.ArgumentParser(description="") | |
parser.add_argument("feather", type=str, help="a feather file") | |
args = parser.parse_args() | |
main(args.feather) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment