Skip to content

Commit

Permalink
Do it in pandas
Browse files Browse the repository at this point in the history
  • Loading branch information
ybressler committed May 29, 2024
1 parent 1399d2a commit 6c8c35d
Show file tree
Hide file tree
Showing 3 changed files with 101 additions and 2 deletions.
96 changes: 95 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ polars = "^0.20.26"
tqdm = "^4.66.4"
pgzip = "^0.3.5"
requests = "^2.32.2"
pandas = "^2.2.2"

[tool.poetry.group.dev.dependencies]
pre-commit = "*"
Expand Down
6 changes: 5 additions & 1 deletion src/process_data/in_pandas.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@
Process the stuff in pandas
"""

import pandas as pd
import argparse


def do_thing(filename: str): ...
def do_thing(filename: str):
df = pd.read_csv(filename, sep=";", header=None, names=["station_name", "measurement"])

print(df.head(2))


if __name__ == "__main__":
Expand Down

0 comments on commit 6c8c35d

Please sign in to comment.