Skip to content

Commit

Permalink
Fix dead link, bump doltcli (#161)
Browse files Browse the repository at this point in the history
* Fix dead link, bump doltcli

* Poetry update

* Fix w no gc

* Add gc
  • Loading branch information
max-hoffman authored Aug 9, 2021
1 parent cb56fd4 commit bb91e0b
Show file tree
Hide file tree
Showing 4 changed files with 262 additions and 207 deletions.
2 changes: 1 addition & 1 deletion doltpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
if not shutil.which("dolt"):
install_dolt = """`dolt` not found in `PATH`
Reference: https://www.dolthub.com/docs/tutorials/installation/
Reference: https://docs.dolthub.com/getting-started/installation
to install:
> sudo bash -c 'curl -L https://github.com/dolthub/dolt/releases/latest/download/install.sh | sudo bash'
Expand Down
5 changes: 5 additions & 0 deletions doltpy/cli/write.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ def write_pandas(
commit: Optional[bool] = False,
commit_message: Optional[str] = None,
commit_date: Optional[datetime.datetime] = None,
do_continue: Optional[bool] = False,
do_gc: Optional[bool] = True,
):
"""
Expand All @@ -43,6 +45,7 @@ def write_pandas(
def writer(filepath: str):
clean = df.dropna(subset=primary_key)
clean.to_csv(filepath, index=False)
return filepath

_import_helper(
dolt=dolt,
Expand All @@ -53,4 +56,6 @@ def writer(filepath: str):
commit=commit,
commit_message=commit_message,
commit_date=commit_date,
do_continue=do_continue,
do_gc=do_gc,
)
Loading

0 comments on commit bb91e0b

Please sign in to comment.