File tree 2 files changed +23
-14
lines changed
2 files changed +23
-14
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## [ 0.10.1] - 2024-10-08
4
+
5
+ ### Fixes :bug :
6
+
7
+ - Fix import when pandas not installed.
8
+
3
9
## [ 0.10.0] - 2024-10-07
4
10
5
11
### New! :sparkles :
29
35
- Fix reading from DuckDB with only geometry column by @kylebarron in https://github.com/developmentseed/lonboard/pull/625
30
36
- Fix attribution by @vgeorge in https://github.com/developmentseed/lonboard/pull/561
31
37
32
- ## New Contributors
38
+ ### New Contributors
33
39
34
40
- @MarcSkovMadsen made their first contribution in https://github.com/developmentseed/lonboard/pull/539
35
41
- @ATL2001 made their first contribution in https://github.com/developmentseed/lonboard/pull/655
Original file line number Diff line number Diff line change 2
2
3
3
import sys
4
4
from typing import (
5
+ TYPE_CHECKING ,
5
6
List ,
6
7
Literal ,
7
8
Sequence ,
10
11
)
11
12
12
13
import numpy as np
13
- import pandas as pd
14
- import pyarrow
15
14
from arro3 .core .types import ArrowArrayExportable , ArrowStreamExportable
16
15
from numpy .typing import NDArray
17
16
22
21
else :
23
22
from typing_extensions import TypedDict
24
23
24
+ if TYPE_CHECKING :
25
+ import pandas as pd
26
+ import pyarrow
27
+
25
28
26
29
IntFloat = Union [int , float ]
27
30
Units = Literal ["meters" , "common" , "pixels" ]
32
35
Tuple [int , ...],
33
36
str ,
34
37
NDArray [np .uint8 ],
35
- pyarrow .FixedSizeListArray ,
36
- pyarrow .ChunkedArray ,
38
+ " pyarrow.FixedSizeListArray" ,
39
+ " pyarrow.ChunkedArray" ,
37
40
ArrowArrayExportable ,
38
41
ArrowStreamExportable ,
39
42
]
40
43
FloatAccessorInput = Union [
41
44
int ,
42
45
float ,
43
46
NDArray [np .number ],
44
- pd .Series ,
45
- pyarrow .FloatingPointArray ,
46
- pyarrow .ChunkedArray ,
47
+ " pd.Series" ,
48
+ " pyarrow.FloatingPointArray" ,
49
+ " pyarrow.ChunkedArray" ,
47
50
ArrowArrayExportable ,
48
51
ArrowStreamExportable ,
49
52
]
52
55
Tuple [int , int , int ],
53
56
Tuple [int , ...],
54
57
NDArray [np .floating ],
55
- pyarrow .FixedSizeListArray ,
56
- pyarrow .ChunkedArray ,
58
+ " pyarrow.FixedSizeListArray" ,
59
+ " pyarrow.ChunkedArray" ,
57
60
ArrowArrayExportable ,
58
61
ArrowStreamExportable ,
59
62
]
60
63
TextAccessorInput = Union [
61
64
str ,
62
65
NDArray [np .str_ ],
63
- pd .Series ,
64
- pyarrow .StringArray ,
65
- pyarrow .LargeStringArray ,
66
- pyarrow .ChunkedArray ,
66
+ " pd.Series" ,
67
+ " pyarrow.StringArray" ,
68
+ " pyarrow.LargeStringArray" ,
69
+ " pyarrow.ChunkedArray" ,
67
70
ArrowArrayExportable ,
68
71
ArrowStreamExportable ,
69
72
]
You can’t perform that action at this time.
0 commit comments