Skip to content

Commit 0963096

Browse files
authored
fix imports (langchain-ai#1288)
1 parent c5dd491 commit 0963096

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

langchain/document_loaders/notebook.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
from pathlib import Path
44
from typing import Any, List
55

6-
import pandas as pd
7-
86
from langchain.docstore.document import Document
97
from langchain.document_loaders.base import BaseLoader
108

@@ -47,7 +45,9 @@ def concatenate_cells(
4745

4846

4947
def remove_newlines(x: Any) -> Any:
50-
"""Remove recursivelly newlines, no matter the data structure they are stored in."""
48+
"""Remove recursively newlines, no matter the data structure they are stored in."""
49+
import pandas as pd
50+
5151
if isinstance(x, str):
5252
return x.replace("\n", "")
5353
elif isinstance(x, list):

poetry.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ sentence-transformers = {version = "^2", optional = true}
4848
aiohttp = "^3.8.3"
4949
pypdf = {version = "^3.4.0", optional = true}
5050
networkx = {version="^2.6.3", optional = true}
51-
aleph-alpha-client = "^2.15.0"
51+
aleph-alpha-client = {version="^2.15.0", optional = true}
5252

5353
[tool.poetry.group.docs.dependencies]
5454
autodoc_pydantic = "^1.8.0"

0 commit comments

Comments
 (0)