File tree Expand file tree Collapse file tree 7 files changed +24
-9
lines changed Expand file tree Collapse file tree 7 files changed +24
-9
lines changed Original file line number Diff line number Diff line change @@ -189,7 +189,7 @@ jobs:
189
189
# installing wheel here because micromamba step was skipped
190
190
if : matrix.buildplat[1] == 'win_arm64'
191
191
shell : bash -el {0}
192
- run : python -m pip install wheel
192
+ run : python -m pip install wheel anaconda-client
193
193
194
194
- name : Validate wheel RECORD
195
195
shell : bash -el {0}
Original file line number Diff line number Diff line change 6
6
Sequence ,
7
7
)
8
8
from functools import partial
9
+ import pathlib
9
10
import re
10
11
from typing import (
11
12
TYPE_CHECKING ,
@@ -70,7 +71,9 @@ class StylerRenderer:
70
71
Base class to process rendering a Styler with a specified jinja2 template.
71
72
"""
72
73
73
- loader = jinja2 .PackageLoader ("pandas" , "io/formats/templates" )
74
+ this_dir = pathlib .Path (__file__ ).parent .resolve ()
75
+ template_dir = this_dir / "templates"
76
+ loader = jinja2 .FileSystemLoader (template_dir )
74
77
env = jinja2 .Environment (loader = loader , trim_blocks = True )
75
78
template_html = env .get_template ("html.tpl" )
76
79
template_html_table = env .get_template ("html_table.tpl" )
Original file line number Diff line number Diff line change @@ -464,8 +464,12 @@ def to_parquet(
464
464
465
465
.. versionadded:: 2.1.0
466
466
467
- kwargs
468
- Additional keyword arguments passed to the engine.
467
+ **kwargs
468
+ Additional keyword arguments passed to the engine:
469
+
470
+ * For ``engine="pyarrow"``: passed to :func:`pyarrow.parquet.write_table`
471
+ or :func:`pyarrow.parquet.write_to_dataset` (when using partition_cols)
472
+ * For ``engine="fastparquet"``: passed to :func:`fastparquet.write`
469
473
470
474
Returns
471
475
-------
@@ -585,7 +589,11 @@ def read_parquet(
585
589
.. versionadded:: 3.0.0
586
590
587
591
**kwargs
588
- Any additional kwargs are passed to the engine.
592
+ Additional keyword arguments passed to the engine:
593
+
594
+ * For ``engine="pyarrow"``: passed to :func:`pyarrow.parquet.read_table`
595
+ * For ``engine="fastparquet"``: passed to
596
+ :meth:`fastparquet.ParquetFile.to_pandas`
589
597
590
598
Returns
591
599
-------
Original file line number Diff line number Diff line change
1
+ import pathlib
1
2
from textwrap import (
2
3
dedent ,
3
4
indent ,
18
19
19
20
@pytest .fixture
20
21
def env ():
21
- loader = jinja2 .PackageLoader ("pandas" , "io/formats/templates" )
22
+ project_dir = pathlib .Path (__file__ ).parent .parent .parent .parent .parent .resolve ()
23
+ template_dir = project_dir / "io" / "formats" / "templates"
24
+ loader = jinja2 .FileSystemLoader (template_dir )
22
25
env = jinja2 .Environment (loader = loader , trim_blocks = True )
23
26
return env
24
27
Original file line number Diff line number Diff line change @@ -340,7 +340,7 @@ class TestHolidayCalendar(AbstractHolidayCalendar):
340
340
tm .assert_index_equal (date_interval_high , expected_results )
341
341
342
342
343
- def test_holidays_with_timezone_specified_but_no_occurences ():
343
+ def test_holidays_with_timezone_specified_but_no_occurrences ():
344
344
# GH 54580
345
345
# _apply_rule() in holiday.py was silently dropping timezones if you passed it
346
346
# an empty list of holiday dates that had timezone information
Original file line number Diff line number Diff line change @@ -402,7 +402,8 @@ def test_hypothesis_delimited_date(
402
402
request .applymarker (
403
403
pytest .mark .xfail (
404
404
reason = "parse_datetime_string cannot reliably tell whether "
405
- "e.g. %m.%Y is a float or a date"
405
+ "e.g. %m.%Y is a float or a date" ,
406
+ strict = False ,
406
407
)
407
408
)
408
409
date_string = test_datetime .strftime (date_format .replace (" " , delimiter ))
Original file line number Diff line number Diff line change 2
2
3
3
- Created: 23 December 2022
4
4
- Status: Implemented
5
- - Discussion: [ #39584 ] ( https://github.com/pandas-dev/pandas/pull/50402 )
5
+ - Discussion: [ #50424 ] ( https://github.com/pandas-dev/pandas/pull/50424 )
6
6
- Author: [ Marco Gorelli] ( https://github.com/MarcoGorelli ) ([ original issue] ( https://github.com/pandas-dev/pandas/issues/39584 ) by [ Joris Van den Bossche] ( https://github.com/jorisvandenbossche ) )
7
7
- Revision: 1
8
8
You can’t perform that action at this time.
0 commit comments