chunk_id
large_stringlengths
36
36
doc_type
large_stringclasses
2 values
category
large_stringclasses
17 values
document
large_stringclasses
50 values
version_raw
large_stringclasses
590 values
chunk_index
int64
0
262
text
large_stringlengths
11
5.69k
file_path
large_stringclasses
882 values
85b4d2b3-0380-5fad-9511-8c117d57996b
docs
pandas
pandas_merge
15
3
: Use the index from the left DataFrame as the join key(s). If it is a MultiIndex, the number of keys in the other DataFrame (either the index or a number of columns) must match the number of levels. **right\_index**bool, default False : Use the index from the right ...
large_dataset/raw/docs/pandas/merge/merge_15.md
a2055b4f-9845-5053-bbd8-98f29e98263a
docs
pandas
pandas_merge
15
4
values must not be None. **copy**bool, default True : If False, avoid copy if possible. **indicator**bool or str, default False : If True, adds a column to the output DataFrame called “\_merge” with information on the source of each row. The column can be gi...
large_dataset/raw/docs/pandas/merge/merge_15.md
292e5100-fb9f-581b-a5cc-e350c4e12416
docs
pandas
pandas_merge
15
5
dataset. * “many\_to\_one” or “m:1”: check if merge keys are unique in right dataset. * “many\_to\_many” or “m:m”: allowed, but does not result in checks. Returns : DataFrame : A DataFrame of the two merged objects. See also [`merge_orde...
large_dataset/raw/docs/pandas/merge/merge_15.md
22d1f213-a055-510c-af9f-4034a89bcd23
docs
pandas
pandas_merge
15
6
... 'value': [1, 2, 3, 5]}) >>> df2 = pd.DataFrame({'rkey': ['foo', 'bar', 'baz', 'foo'], ... 'value': [5, 6, 7, 8]}) >>> df1 lkey value 0 foo 1 1 bar 2 2 baz 3 3 foo 5 >>> df2 rkey value 0 foo ...
large_dataset/raw/docs/pandas/merge/merge_15.md
d8a0f9d9-8b6e-5e50-9779-dafeb7d5e907
docs
pandas
pandas_merge
15
7
... suffixes=('_left', '_right')) lkey value_left rkey value_right 0 foo 1 foo 5 1 foo 1 foo 8 2 foo 5 foo 5 3 foo 5 foo 8 4 bar 2 bar 6 5 baz 3 ba...
large_dataset/raw/docs/pandas/merge/merge_15.md
0ea5e827-6efe-5001-abc4-cbe16c7e8309
docs
pandas
pandas_merge
15
8
a b c 0 foo 1 3 ``` ```None >>> df1.merge(df2, how='left', on='a') a b c 0 foo 1 3.0 1 bar 2 NaN ``` ```None >>> df1 = pd.DataFrame({'left': ['foo', 'bar']}) >>> df2 = pd.DataFrame({'right': [7, 8]}) >>> df1 left 0 foo 1...
large_dataset/raw/docs/pandas/merge/merge_15.md
894667b1-ddf8-580c-a8a8-75a58424be61
docs
pandas
pandas_merge
20
0
# pandas.merge# Source: https://pandas.pydata.org/pandas-docs/version/2.0/reference/api/pandas.merge.html Version: 2.0 pandas.merge(*left*, *right*, *how='inner'*, *on=None*, *left\_on=None*, *right\_on=None*, *left\_index=False*, *right\_index=False*, *sort=False*, *suffixes=('\_x', '\_y')*, *copy=None*, *indicator=...
large_dataset/raw/docs/pandas/merge/merge_20.md
0c8b627b-18e6-50e8-a6a2-f4780b4c1fc3
docs
pandas
pandas_merge
20
1
If both key columns contain rows where the key is a null value, those rows will be matched against each other. This is different from usual SQL join behaviour and can lead to unexpected results. Parameters : **left**DataFrame or named Series **right**DataFrame or named Series : ...
large_dataset/raw/docs/pandas/merge/merge_20.md
cad2441c-0e88-598e-94f8-ffc2bc54b978
docs
pandas
pandas_merge
20
2
* cross: creates the cartesian product from both frames, preserves the order of the left keys. New in version 1.2.0. **on**label or list : Column or index level names to join on. These must be found in both DataFrames. If on is None and not merging...
large_dataset/raw/docs/pandas/merge/merge_20.md
f6a6e9ae-de13-5617-8cdf-9effd8d9269f
docs
pandas
pandas_merge
20
3
: Use the index from the left DataFrame as the join key(s). If it is a MultiIndex, the number of keys in the other DataFrame (either the index or a number of columns) must match the number of levels. **right\_index**bool, default False : Use the index from the right ...
large_dataset/raw/docs/pandas/merge/merge_20.md
0a5cd62b-b633-595e-9fe7-8ec8291d8331
docs
pandas
pandas_merge
20
4
values must not be None. **copy**bool, default True : If False, avoid copy if possible. **indicator**bool or str, default False : If True, adds a column to the output DataFrame called “\_merge” with information on the source of each row. The column can be gi...
large_dataset/raw/docs/pandas/merge/merge_20.md
21b8c49e-abf8-59e4-b2be-b77755136e4d
docs
pandas
pandas_merge
20
5
dataset. * “many\_to\_one” or “m:1”: check if merge keys are unique in right dataset. * “many\_to\_many” or “m:m”: allowed, but does not result in checks. Returns : DataFrame : A DataFrame of the two merged objects. See also [`merge_orde...
large_dataset/raw/docs/pandas/merge/merge_20.md
e6449459-9c72-51ff-b0d6-e3fc325697c7
docs
pandas
pandas_merge
20
6
... 'value': [1, 2, 3, 5]}) >>> df2 = pd.DataFrame({'rkey': ['foo', 'bar', 'baz', 'foo'], ... 'value': [5, 6, 7, 8]}) >>> df1 lkey value 0 foo 1 1 bar 2 2 baz 3 3 foo 5 >>> df2 rkey value 0 foo ...
large_dataset/raw/docs/pandas/merge/merge_20.md
4a912a1e-2d31-5c10-b295-cd6126c4a74a
docs
pandas
pandas_merge
20
7
... suffixes=('_left', '_right')) lkey value_left rkey value_right 0 foo 1 foo 5 1 foo 1 foo 8 2 foo 5 foo 5 3 foo 5 foo 8 4 bar 2 bar 6 5 baz 3 ba...
large_dataset/raw/docs/pandas/merge/merge_20.md
cb152bbe-a239-5584-8ad9-a092389a5021
docs
pandas
pandas_merge
20
8
a b c 0 foo 1 3 ``` ```None >>> df1.merge(df2, how='left', on='a') a b c 0 foo 1 3.0 1 bar 2 NaN ``` ```None >>> df1 = pd.DataFrame({'left': ['foo', 'bar']}) >>> df2 = pd.DataFrame({'right': [7, 8]}) >>> df1 left 0 foo 1...
large_dataset/raw/docs/pandas/merge/merge_20.md
d4b445a0-da2e-521f-86b3-9bd03c3ebb6f
docs
pandas
pandas_merge
21
0
# pandas.merge# Source: https://pandas.pydata.org/pandas-docs/version/2.1/reference/api/pandas.merge.html Version: 2.1 pandas.merge(*left*, *right*, *how='inner'*, *on=None*, *left\_on=None*, *right\_on=None*, *left\_index=False*, *right\_index=False*, *sort=False*, *suffixes=('\_x', '\_y')*, *copy=None*, *indicator=...
large_dataset/raw/docs/pandas/merge/merge_21.md
4bdc6b7a-e80a-5e61-90db-0945662a0e00
docs
pandas
pandas_merge
21
1
If both key columns contain rows where the key is a null value, those rows will be matched against each other. This is different from usual SQL join behaviour and can lead to unexpected results. Parameters: : **left**DataFrame or named Series **right**DataFrame or named Series :...
large_dataset/raw/docs/pandas/merge/merge_21.md
f0de466b-a689-5d23-a8a4-ac522c0b4735
docs
pandas
pandas_merge
21
2
* cross: creates the cartesian product from both frames, preserves the order of the left keys. New in version 1.2.0. **on**label or list : Column or index level names to join on. These must be found in both DataFrames. If on is None and not merging...
large_dataset/raw/docs/pandas/merge/merge_21.md
43282ef4-865f-5baa-bfd9-8ce54bba36cd
docs
pandas
pandas_merge
21
3
: Use the index from the left DataFrame as the join key(s). If it is a MultiIndex, the number of keys in the other DataFrame (either the index or a number of columns) must match the number of levels. **right\_index**bool, default False : Use the index from the right ...
large_dataset/raw/docs/pandas/merge/merge_21.md
531e5e5e-e07a-5b07-9083-6514f1e03421
docs
pandas
pandas_merge
21
4
values must not be None. **copy**bool, default True : If False, avoid copy if possible. **indicator**bool or str, default False : If True, adds a column to the output DataFrame called “\_merge” with information on the source of each row. The column can be gi...
large_dataset/raw/docs/pandas/merge/merge_21.md
f9d86816-311e-5c84-90dc-f236c4b84896
docs
pandas
pandas_merge
21
5
dataset. * “many\_to\_one” or “m:1”: check if merge keys are unique in right dataset. * “many\_to\_many” or “m:m”: allowed, but does not result in checks. Returns: : DataFrame : A DataFrame of the two merged objects. See also [`merge_ord...
large_dataset/raw/docs/pandas/merge/merge_21.md
27ce9f6b-e8c1-56f0-b025-115f9bbd1a65
docs
pandas
pandas_merge
21
6
1 bar 2 2 baz 3 3 foo 5 >>> df2 rkey value 0 foo 5 1 bar 6 2 baz 7 3 foo 8 ``` Merge df1 and df2 on the lkey and rkey columns. The value columns have the default suffixes, \_x and \_y, appended. ```None >>> df...
large_dataset/raw/docs/pandas/merge/merge_21.md
aa40f5aa-7586-5cef-ab77-105df31d585a
docs
pandas
pandas_merge
21
7
3 foo 5 foo 8 4 bar 2 bar 6 5 baz 3 baz 7 ``` Merge DataFrames df1 and df2, but raise an exception if the DataFrames have any overlapping columns. ```None >>> df1.merge(df2, left_on='lkey', right_on='rkey', suffixes=(...
large_dataset/raw/docs/pandas/merge/merge_21.md
c92f3c0b-5247-5a4a-95d6-ed8b1da6dd86
docs
pandas
pandas_merge
21
8
>>> df1 = pd.DataFrame({'left': ['foo', 'bar']}) >>> df2 = pd.DataFrame({'right': [7, 8]}) >>> df1 left 0 foo 1 bar >>> df2 right 0 7 1 8 ``` ```None >>> df1.merge(df2, how='cross') left right 0 foo 7 1 foo 8 2 bar ...
large_dataset/raw/docs/pandas/merge/merge_21.md
a62ee909-8596-507f-91dc-53e56eb2b993
docs
pandas
pandas_merge
22
0
# pandas.merge# Source: https://pandas.pydata.org/pandas-docs/version/2.2/reference/api/pandas.merge.html Version: 2.2 pandas.merge(*left*, *right*, *how='inner'*, *on=None*, *left\_on=None*, *right\_on=None*, *left\_index=False*, *right\_index=False*, *sort=False*, *suffixes=('\_x', '\_y')*, *copy=None*, *indicator=...
large_dataset/raw/docs/pandas/merge/merge_22.md
fbb7abe5-4256-5fb4-b4bf-c0bc01b9ac5c
docs
pandas
pandas_merge
22
1
If both key columns contain rows where the key is a null value, those rows will be matched against each other. This is different from usual SQL join behaviour and can lead to unexpected results. Parameters: : **left**DataFrame or named Series **right**DataFrame or named Series :...
large_dataset/raw/docs/pandas/merge/merge_22.md
e9d7e4be-f219-5f52-858e-d8a7f6ba346c
docs
pandas
pandas_merge
22
2
* cross: creates the cartesian product from both frames, preserves the order of the left keys. **on**label or list : Column or index level names to join on. These must be found in both DataFrames. If on is None and not merging on indexes then this defaults ...
large_dataset/raw/docs/pandas/merge/merge_22.md
aa640a31-ccc7-51cd-855a-d0642648733c
docs
pandas
pandas_merge
22
3
: Use the index from the left DataFrame as the join key(s). If it is a MultiIndex, the number of keys in the other DataFrame (either the index or a number of columns) must match the number of levels. **right\_index**bool, default False : Use the index from the right ...
large_dataset/raw/docs/pandas/merge/merge_22.md
95d0c116-92d5-5252-abf0-2d4fce82404c
docs
pandas
pandas_merge
22
4
values must not be None. **copy**bool, default True : If False, avoid copy if possible. Note The copy keyword will change behavior in pandas 3.0. [Copy-on-Write](https://pandas.pydata.org/docs/dev/user_guide/copy_on_write.html) will be ena...
large_dataset/raw/docs/pandas/merge/merge_22.md
3ba29d4c-93b0-5e2a-8867-3c1ae38ccabf
docs
pandas
pandas_merge
22
5
type with the value of “left\_only” for observations whose merge key only appears in the left DataFrame, “right\_only” for observations whose merge key only appears in the right DataFrame, and “both” if the observation’s merge key is found in both DataFrames. **v...
large_dataset/raw/docs/pandas/merge/merge_22.md
3e5100d4-29cd-5bab-aece-65a605eda874
docs
pandas
pandas_merge
22
6
: Merge with optional filling/interpolation. [`merge_asof`](pandas.merge_asof.html#pandas.merge_asof "pandas.merge_asof") : Merge on nearest keys. [`DataFrame.join`](pandas.DataFrame.join.html#pandas.DataFrame.join "pandas.DataFrame.join") : Similar method using indices. Examples `...
large_dataset/raw/docs/pandas/merge/merge_22.md
2b48c33e-69fc-53f1-8b64-189d01c102ab
docs
pandas
pandas_merge
22
7
0 foo 1 foo 5 1 foo 1 foo 8 2 bar 2 bar 6 3 baz 3 baz 7 4 foo 5 foo 5 5 foo 5 foo 8 ``` Merge DataFrames df1 and df2 with specified left and right suffixes appended to any overlapping col...
large_dataset/raw/docs/pandas/merge/merge_22.md
faa62169-9032-58fa-bb4d-69f70594d764
docs
pandas
pandas_merge
22
8
ValueError: columns overlap but no suffix specified: Index(['value'], dtype='object') ``` ```None >>> df1 = pd.DataFrame({'a': ['foo', 'bar'], 'b': [1, 2]}) >>> df2 = pd.DataFrame({'a': ['foo', 'baz'], 'c': [3, 4]}) >>> df1 a b 0 foo 1 1 bar 2 >>> df2 ...
large_dataset/raw/docs/pandas/merge/merge_22.md
948c24b4-b3f1-5468-94bf-7825bdc2f8b6
docs
pandas
pandas_merge
30
0
# pandas.merge# Source: https://pandas.pydata.org/pandas-docs/version/3.0/reference/api/pandas.merge.html Version: 3.0 pandas.merge(*left*, *right*, *how='inner'*, *on=None*, *left\_on=None*, *right\_on=None*, *left\_index=False*, *right\_index=False*, *sort=False*, *suffixes=('\_x'*, *'\_y')*, *copy=<no\_default>*, ...
large_dataset/raw/docs/pandas/merge/merge_30.md
1028a08c-6bc7-5567-a3ca-97cc53b16b15
docs
pandas
pandas_merge
30
1
If both key columns contain rows where the key is a null value, those rows will be matched against each other. This is different from usual SQL join behaviour and can lead to unexpected results. Parameters: : **left**DataFrame or named Series : First pandas object to merge. **r...
large_dataset/raw/docs/pandas/merge/merge_30.md
74c9626f-01ed-5512-b66d-a24d8caafddf
docs
pandas
pandas_merge
30
2
join; preserve the order of the left keys. * cross: creates the cartesian product from both frames, preserves the order of the left keys. * left\_anti: use only keys from left frame that are not in right frame, similar to SQL left anti join; preserve key...
large_dataset/raw/docs/pandas/merge/merge_30.md
33735823-f952-5db4-9af7-4c9375beb9ff
docs
pandas
pandas_merge
30
3
These arrays are treated as if they are columns. **right\_on**Hashable or a sequence of the previous, or array-like : Column or index level names to join on in the right DataFrame. Can also be an array or list of arrays of the length of the right DataFrame. These a...
large_dataset/raw/docs/pandas/merge/merge_30.md
56cb02ae-7f7e-5002-b5b0-5031e6b8702f
docs
pandas
pandas_merge
30
4
**suffixes**list-like, default is (“\_x”, “\_y”) : A length-2 sequence where each element is optionally a string indicating the suffix to add to overlapping column names in left and right respectively. Pass a value of None instead of a string to indicate that the co...
large_dataset/raw/docs/pandas/merge/merge_30.md
b359f426-955b-58e7-b390-6f549d2728c8
docs
pandas
pandas_merge
30
5
**indicator**bool or str, default False : If True, adds a column to the output DataFrame called “\_merge” with information on the source of each row. The column can be given a different name by providing a string argument. The column will have a Categorical type wit...
large_dataset/raw/docs/pandas/merge/merge_30.md
41521d5f-3e4f-5a90-9683-322f9d33f582
docs
pandas
pandas_merge
30
6
dataset. * “many\_to\_many” or “m:m”: allowed, but does not result in checks. Returns: : DataFrame : A DataFrame of the two merged objects. See also [`merge_ordered`](pandas.merge_ordered.html#pandas.merge_ordered "pandas.merge_ordered") : Merge with option...
large_dataset/raw/docs/pandas/merge/merge_30.md
b87bbc20-8d9b-5135-abe8-05946f042f91
docs
pandas
pandas_merge
30
7
2 baz 7 3 foo 8 ``` Merge df1 and df2 on the lkey and rkey columns. The value columns have the default suffixes, \_x and \_y, appended. ```None >>> df1.merge(df2, left_on="lkey", right_on="rkey") lkey value_x rkey value_y 0 foo 1 foo 5 1 foo ...
large_dataset/raw/docs/pandas/merge/merge_30.md
2cf174a1-110a-592f-9bfe-324196f5d7ff
docs
pandas
pandas_merge
30
8
Merge DataFrames df1 and df2, but raise an exception if the DataFrames have any overlapping columns. ```None >>> df1.merge(df2, left_on="lkey", right_on="rkey", suffixes=(False, False)) Traceback (most recent call last): ... ValueError: columns overlap but no suffix specified: Index...
large_dataset/raw/docs/pandas/merge/merge_30.md
3326ea0d-e876-568a-afa6-d27d529687f1
docs
pandas
pandas_merge
30
9
0 7 1 8 ``` ```None >>> df1.merge(df2, how="cross") left right 0 foo 7 1 foo 8 2 bar 7 3 bar 8 ```
large_dataset/raw/docs/pandas/merge/merge_30.md
49126289-9282-5872-9ef9-6f21b65f215e
docs
pandas
pandas_to_parquet
15
0
# pandas.DataFrame.to_parquet# Source: https://pandas.pydata.org/pandas-docs/version/1.5/reference/api/pandas.DataFrame.to_parquet.html Version: 1.5 DataFrame.to\_parquet(*path=None*, *engine='auto'*, *compression='snappy'*, *index=None*, *partition\_cols=None*, *storage\_options=None*, *\*\*kwargs*)[[source]](https:...
large_dataset/raw/docs/pandas/to_parquet/to_parquet_15.md
fc6a5f34-3dcb-5b57-9be2-b32c387bc04c
docs
pandas
pandas_to_parquet
15
1
returned as bytes. If a string or path, it will be used as Root Directory path when writing a partitioned dataset. Changed in version 1.2.0. Previously this was “fname” **engine**{‘auto’, ‘pyarrow’, ‘fastparquet’}, default ‘auto’ : Parquet library to ...
large_dataset/raw/docs/pandas/to_parquet/to_parquet_15.md
25a7eb1e-edd4-501b-a189-92fd19c405f4
docs
pandas
pandas_to_parquet
15
2
the RangeIndex will be stored as a range in the metadata so it doesn’t require much space and is faster. Other indexes will be included as columns in the file output. **partition\_cols**list, optional, default None : Column names by which to partition the dataset. ...
large_dataset/raw/docs/pandas/to_parquet/to_parquet_15.md
ffcd5df0-6f39-5ae7-afef-ed6c855405bc
docs
pandas
pandas_to_parquet
15
3
details, and for more examples on storage options refer [here](https://pandas.pydata.org/docs/user_guide/io.html?highlight=storage_options#reading-writing-remote-files). New in version 1.2.0. **\*\*kwargs** : Additional arguments passed to the parquet library. See ...
large_dataset/raw/docs/pandas/to_parquet/to_parquet_15.md
a143f07f-4e22-5aaf-8118-e2570e92f069
docs
pandas
pandas_to_parquet
15
4
[`DataFrame.to_hdf`](pandas.DataFrame.to_hdf.html#pandas.DataFrame.to_hdf "pandas.DataFrame.to_hdf") : Write to hdf. Notes This function requires either the [fastparquet](https://pypi.org/project/fastparquet) or [pyarrow](https://arrow.apache.org/docs/python/) library. Examples ```None ...
large_dataset/raw/docs/pandas/to_parquet/to_parquet_15.md
9be301f8-1858-531e-9bd3-c273fcad84fa
docs
pandas
pandas_to_parquet
20
0
# pandas.DataFrame.to_parquet# Source: https://pandas.pydata.org/pandas-docs/version/2.0/reference/api/pandas.DataFrame.to_parquet.html Version: 2.0 DataFrame.to\_parquet(*path=None*, *engine='auto'*, *compression='snappy'*, *index=None*, *partition\_cols=None*, *storage\_options=None*, *\*\*kwargs*)[[source]](https:...
large_dataset/raw/docs/pandas/to_parquet/to_parquet_20.md
71de15a2-8f6e-5eac-aa42-8e52f5e0ab9e
docs
pandas
pandas_to_parquet
20
1
returned as bytes. If a string or path, it will be used as Root Directory path when writing a partitioned dataset. Changed in version 1.2.0. Previously this was “fname” **engine**{‘auto’, ‘pyarrow’, ‘fastparquet’}, default ‘auto’ : Parquet library to ...
large_dataset/raw/docs/pandas/to_parquet/to_parquet_20.md
b5bc310d-59b8-5c7c-8b95-f2606e0378a0
docs
pandas
pandas_to_parquet
20
2
the RangeIndex will be stored as a range in the metadata so it doesn’t require much space and is faster. Other indexes will be included as columns in the file output. **partition\_cols**list, optional, default None : Column names by which to partition the dataset. ...
large_dataset/raw/docs/pandas/to_parquet/to_parquet_20.md
788965f7-9eab-545c-83a4-17bb061917fe
docs
pandas
pandas_to_parquet
20
3
details, and for more examples on storage options refer [here](https://pandas.pydata.org/docs/user_guide/io.html?highlight=storage_options#reading-writing-remote-files). New in version 1.2.0. **\*\*kwargs** : Additional arguments passed to the parquet library. See ...
large_dataset/raw/docs/pandas/to_parquet/to_parquet_20.md
a36fed0c-f637-596e-8583-06ecadef784b
docs
pandas
pandas_to_parquet
20
4
[`DataFrame.to_hdf`](pandas.DataFrame.to_hdf.html#pandas.DataFrame.to_hdf "pandas.DataFrame.to_hdf") : Write to hdf. Notes This function requires either the [fastparquet](https://pypi.org/project/fastparquet) or [pyarrow](https://arrow.apache.org/docs/python/) library. Examples ```None ...
large_dataset/raw/docs/pandas/to_parquet/to_parquet_20.md
be9c24c8-91b6-54dc-9df2-47b820b139d6
docs
pandas
pandas_to_parquet
21
0
# pandas.DataFrame.to_parquet# Source: https://pandas.pydata.org/pandas-docs/version/2.1/reference/api/pandas.DataFrame.to_parquet.html Version: 2.1 DataFrame.to\_parquet(*path=None*, *engine='auto'*, *compression='snappy'*, *index=None*, *partition\_cols=None*, *storage\_options=None*, *\*\*kwargs*)[[source]](https:...
large_dataset/raw/docs/pandas/to_parquet/to_parquet_21.md
983a624b-c925-5830-8c7c-590a0ffb75c8
docs
pandas
pandas_to_parquet
21
1
returned as bytes. If a string or path, it will be used as Root Directory path when writing a partitioned dataset. Changed in version 1.2.0. Previously this was “fname” **engine**{‘auto’, ‘pyarrow’, ‘fastparquet’}, default ‘auto’ : Parquet library to ...
large_dataset/raw/docs/pandas/to_parquet/to_parquet_21.md
28438e17-9a3b-5111-811b-5a432d48ccdc
docs
pandas
pandas_to_parquet
21
2
will be saved. However, instead of being saved as values, the RangeIndex will be stored as a range in the metadata so it doesn’t require much space and is faster. Other indexes will be included as columns in the file output. **partition\_cols**list, optional, def...
large_dataset/raw/docs/pandas/to_parquet/to_parquet_21.md
35f80f06-7a96-523f-9911-8dc2ac2ee927
docs
pandas
pandas_to_parquet
21
3
details, and for more examples on storage options refer [here](https://pandas.pydata.org/docs/user_guide/io.html?highlight=storage_options#reading-writing-remote-files). New in version 1.2.0. **\*\*kwargs** : Additional arguments passed to the parquet library. See ...
large_dataset/raw/docs/pandas/to_parquet/to_parquet_21.md
0bba13ad-576d-5469-980e-aa50715e27ea
docs
pandas
pandas_to_parquet
21
4
[`DataFrame.to_hdf`](pandas.DataFrame.to_hdf.html#pandas.DataFrame.to_hdf "pandas.DataFrame.to_hdf") : Write to hdf. Notes This function requires either the [fastparquet](https://pypi.org/project/fastparquet) or [pyarrow](https://arrow.apache.org/docs/python/) library. Examples ```None ...
large_dataset/raw/docs/pandas/to_parquet/to_parquet_21.md
bb5f7fa1-93e5-5d83-8873-92bb9c02018c
docs
pandas
pandas_to_parquet
22
0
# pandas.DataFrame.to_parquet# Source: https://pandas.pydata.org/pandas-docs/version/2.2/reference/api/pandas.DataFrame.to_parquet.html Version: 2.2 DataFrame.to\_parquet(*path=None*, *\**, *engine='auto'*, *compression='snappy'*, *index=None*, *partition\_cols=None*, *storage\_options=None*, *\*\*kwargs*)[[source]](...
large_dataset/raw/docs/pandas/to_parquet/to_parquet_22.md
d6e43eec-3245-584d-a790-d1c005a2557f
docs
pandas
pandas_to_parquet
22
1
returned as bytes. If a string or path, it will be used as Root Directory path when writing a partitioned dataset. **engine**{‘auto’, ‘pyarrow’, ‘fastparquet’}, default ‘auto’ : Parquet library to use. If ‘auto’, then the option `io.parquet.engine` is used. The def...
large_dataset/raw/docs/pandas/to_parquet/to_parquet_22.md
185b1072-1f14-5cee-a3f1-a7825205c398
docs
pandas
pandas_to_parquet
22
2
the RangeIndex will be stored as a range in the metadata so it doesn’t require much space and is faster. Other indexes will be included as columns in the file output. **partition\_cols**list, optional, default None : Column names by which to partition the dataset. ...
large_dataset/raw/docs/pandas/to_parquet/to_parquet_22.md
25af7ada-38ea-5783-ae2b-e132bb31040e
docs
pandas
pandas_to_parquet
22
3
details, and for more examples on storage options refer [here](https://pandas.pydata.org/docs/user_guide/io.html?highlight=storage_options#reading-writing-remote-files). **\*\*kwargs** : Additional arguments passed to the parquet library. See [pandas io](../../user_guide/io.ht...
large_dataset/raw/docs/pandas/to_parquet/to_parquet_22.md
d651492e-f197-5c20-9532-2f47c2b5eab5
docs
pandas
pandas_to_parquet
22
4
[`DataFrame.to_hdf`](pandas.DataFrame.to_hdf.html#pandas.DataFrame.to_hdf "pandas.DataFrame.to_hdf") : Write to hdf. Notes This function requires either the [fastparquet](https://pypi.org/project/fastparquet) or [pyarrow](https://arrow.apache.org/docs/python/) library. Examples ```None ...
large_dataset/raw/docs/pandas/to_parquet/to_parquet_22.md
e9a79a3b-8ed2-54e3-bfda-7f8ae092054a
docs
pandas
pandas_to_parquet
30
0
# pandas.DataFrame.to_parquet# Source: https://pandas.pydata.org/pandas-docs/version/3.0/reference/api/pandas.DataFrame.to_parquet.html Version: 3.0 DataFrame.to\_parquet(*path=None*, *\**, *engine='auto'*, *compression='snappy'*, *index=None*, *partition\_cols=None*, *storage\_options=None*, *filesystem=None*, *\*\*...
large_dataset/raw/docs/pandas/to_parquet/to_parquet_30.md
9c3f65e9-4a26-5376-aaee-7c2086498e9f
docs
pandas
pandas_to_parquet
30
1
object implementing a binary `write()` function. If None, the result is returned as bytes. If a string or path, it will be used as Root Directory path when writing a partitioned dataset. **engine**{{‘auto’, ‘pyarrow’, ‘fastparquet’}}, default ‘auto’ : Parquet libra...
large_dataset/raw/docs/pandas/to_parquet/to_parquet_30.md
3a021102-4ea1-5bba-8c79-528d2364ed09
docs
pandas
pandas_to_parquet
30
2
will be saved. However, instead of being saved as values, the RangeIndex will be stored as a range in the metadata so it doesn’t require much space and is faster. Other indexes will be included as columns in the file output. **partition\_cols**list, optional, def...
large_dataset/raw/docs/pandas/to_parquet/to_parquet_30.md
e828c292-cb2d-5513-a612-481caaadbae3
docs
pandas
pandas_to_parquet
30
3
details, and for more examples on storage options refer [here](https://pandas.pydata.org/docs/user_guide/io.html?highlight=storage_options#reading-writing-remote-files). **filesystem**fsspec or pyarrow filesystem, default None : Filesystem object to use when reading the parquet file. Only...
large_dataset/raw/docs/pandas/to_parquet/to_parquet_30.md
29b111bd-43c3-5df7-8541-f5899dd18e39
docs
pandas
pandas_to_parquet
30
4
: Read a parquet file. [`DataFrame.to_orc`](pandas.DataFrame.to_orc.html#pandas.DataFrame.to_orc "pandas.DataFrame.to_orc") : Write an orc file. [`DataFrame.to_csv`](pandas.DataFrame.to_csv.html#pandas.DataFrame.to_csv "pandas.DataFrame.to_csv") : Write a csv file. [`DataFrame.to_sql`](...
large_dataset/raw/docs/pandas/to_parquet/to_parquet_30.md
a49d0f04-2704-5a8e-9898-050ee0acf69a
docs
pandas
pandas_to_parquet
30
5
To manage file size and ensure a more predictable roundtrip process, consider using [`Categorical.remove_unused_categories()`](pandas.Categorical.remove_unused_categories.html#pandas.Categorical.remove_unused_categories "pandas.Categorical.remove_unused_categories") on the DataFrame before saving. ...
large_dataset/raw/docs/pandas/to_parquet/to_parquet_30.md
b7051bd1-741f-5015-8133-4c153efa3ddd
docs
python
python_cmdline
310
0
# 1.Command line and environment¶ Source: https://docs.python.org/3.10/using/cmdline.html Version: 3.10 The CPython interpreter scans the command line and the environment for various settings. **CPython implementation detail:** Other implementations’ command line schemes may differ. See [Alternate Implementations](....
large_dataset/raw/docs/python/cmdline/cmdline_310.md
c642963a-5143-5ff4-acc0-11e1948e4ad9
docs
python
python_cmdline
310
1
commands and executes them until an EOF (an end-of-file character, you can produce that with `Ctrl-D` on UNIX or `Ctrl-Z, Enter` on Windows) is read. * When called with a file name argument or with a file as standard input, it reads and executes a script from that file. * When called with a directory name argumen...
large_dataset/raw/docs/python/cmdline/cmdline_310.md
b78838b4-4729-5068-bfd8-7baf34eca96a
docs
python
python_cmdline
310
2
element, subscript zero (`sys.argv[0]`), is a string reflecting the program’s source. `-c` `<command>`[¶](#cmdoption-c "Permalink to this definition") : Execute the Python code in *command*. *command* can be one or more statements separated by newlines, with significant leading whitespace as in normal module...
large_dataset/raw/docs/python/cmdline/cmdline_310.md
84b50c51-f06d-583e-9dec-b0100fec047f
docs
python
python_cmdline
310
3
the [`__main__`](../library/__main__.html#module-__main__ "__main__: The environment where top-level code is run. Covers command-line interfaces, import-time behavior, and ``__name__ == '__main__'``.") module. Since the argument is a *module* name, you must not give a file extension (`.py`). The module nam...
large_dataset/raw/docs/python/cmdline/cmdline_310.md
55e2e719-adce-5673-9873-81bef65cc748
docs
python
python_cmdline
310
4
can still be used for precompiled modules, even if the original source file is not available. If this option is given, the first element of [`sys.argv`](../library/sys.html#sys.argv "sys.argv") will be the full path to the module file (while the module file is being located, the first element will ...
large_dataset/raw/docs/python/cmdline/cmdline_310.md
d59ab02f-b9f3-51f0-be3a-5d8dc26f000e
docs
python
python_cmdline
310
5
python -m timeit -s 'setup here' 'benchmarked code here' python -m timeit -h # for details ``` Raises an [auditing event](../library/sys.html#auditing) `cpython.run_module` with argument `module-name`. See also [`runpy.run_module()`](../library/runpy.html#runpy.run_module "runpy.run_module") ...
large_dataset/raw/docs/python/cmdline/cmdline_310.md
b9880bab-d933-5586-beb0-59bbb3da7fb5
docs
python
python_cmdline
310
6
[`sys.path`](../library/sys.html#sys.path "sys.path"). Raises an [auditing event](../library/sys.html#auditing) `cpython.run_stdin` with no arguments. `<script>` : Execute the Python code contained in *script*, which must be a filesystem path (absolute or relative) referring to either a Python file, a d...
large_dataset/raw/docs/python/cmdline/cmdline_310.md
c3d59b38-7aa2-5435-9acb-b57c6d2d9e5d
docs
python
python_cmdline
310
7
If the script name refers to a directory or zipfile, the script name is added to the start of [`sys.path`](../library/sys.html#sys.path "sys.path") and the `__main__.py` file in that location is executed as the [`__main__`](../library/__main__.html#module-__main__ "__main__: The environment where top-level ...
large_dataset/raw/docs/python/cmdline/cmdline_310.md
97f2fe10-48bf-54eb-a47f-b98d86f6da37
docs
python
python_cmdline
310
8
If no interface option is given, [`-i`](#cmdoption-i) is implied, `sys.argv[0]` is an empty string (`""`) and the current directory will be added to the start of [`sys.path`](../library/sys.html#sys.path "sys.path"). Also, tab-completion and history editing is automatically enabled, if available on your platform (see [...
large_dataset/raw/docs/python/cmdline/cmdline_310.md
d368f91f-add9-5dcf-bc58-b93b3d622e7f
docs
python
python_cmdline
310
9
: Print the Python version number and exit. Example output could be: ```None Python 3.8.0b2+ ``` When given twice, print more information about the build, like: ```None Python 3.8.0b2+ (3.8:0c076caaa8, Apr 20 2019, 21:55:00) [GCC 6.2.0 20161005] ``` New in version 3.6: The `-VV...
large_dataset/raw/docs/python/cmdline/cmdline_310.md
a546dd26-06d4-5abb-a8a5-52ebc9984902
docs
python
python_cmdline
310
10
`-B`[¶](#cmdoption-B "Permalink to this definition") : If given, Python won’t try to write `.pyc` files on the import of source modules. See also [`PYTHONDONTWRITEBYTECODE`](#envvar-PYTHONDONTWRITEBYTECODE). `--check-hash-based-pycs` `default|always|never`[¶](#cmdoption-check-hash-based-pycs "Permalink to this d...
large_dataset/raw/docs/python/cmdline/cmdline_310.md
fccbe156-525d-5697-b1e1-ec91febbec53
docs
python
python_cmdline
310
11
: Turn on parser debugging output (for expert only, depending on compilation options). See also [`PYTHONDEBUG`](#envvar-PYTHONDEBUG). `-E`[¶](#cmdoption-E "Permalink to this definition") : Ignore all `PYTHON*` environment variables, e.g. [`PYTHONPATH`](#envvar-PYTHONPATH) and [`PYTHONHOME`](#envvar-PYTHONH...
large_dataset/raw/docs/python/cmdline/cmdline_310.md
21ce577a-e0ba-54a4-a1b1-0e0932ed9704
docs
python
python_cmdline
310
12
In isolated mode [`sys.path`](../library/sys.html#sys.path "sys.path") contains neither the script’s directory nor the user’s site-packages directory. All `PYTHON*` environment variables are ignored, too. Further restrictions may be imposed to prevent the user from injecting malicious code. New in ...
large_dataset/raw/docs/python/cmdline/cmdline_310.md
6f46fc4c-78fa-547f-bcc6-eb0ae580eb81
docs
python
python_cmdline
310
13
: Do [`-O`](#cmdoption-O) and also discard docstrings. Augment the filename for compiled ([bytecode](../glossary.html#term-bytecode)) files by adding `.opt-2` before the `.pyc` extension (see [**PEP 488**](https://www.python.org/dev/peps/pep-0488)). Changed in version 3.5: Modify `.pyc` filenames accordi...
large_dataset/raw/docs/python/cmdline/cmdline_310.md
b59b2e3d-77e8-52d9-9818-11eba1690247
docs
python
python_cmdline
310
14
constant within an individual Python process, they are not predictable between repeated invocations of Python. Hash randomization is intended to provide protection against a denial-of-service caused by carefully chosen inputs that exploit the worst case performance of a dict construction, O(n2) com...
large_dataset/raw/docs/python/cmdline/cmdline_310.md
74a95950-d55e-56d8-b7cb-e6b92036eb43
docs
python
python_cmdline
310
15
: Disable the import of the module [`site`](../library/site.html#module-site "site: Module responsible for site-specific configuration.") and the site-dependent manipulations of [`sys.path`](../library/sys.html#sys.path "sys.path") that it entails. Also disable these manipulations if [`site`](../library/site....
large_dataset/raw/docs/python/cmdline/cmdline_310.md
1f5dc5f7-f4aa-5a81-a91e-367ead5a3d80
docs
python
python_cmdline
310
16
(filename or built-in module) from which it is loaded. When given twice (`-vv`), print a message for each file that is checked for when searching for a module. Also provides information on module cleanup at exit. Changed in version 3.10: The [`site`](../library/site.html#module-site "site: Module respo...
large_dataset/raw/docs/python/cmdline/cmdline_310.md
3b94624f-8741-5f16-946c-07e6792e805b
docs
python
python_cmdline
310
17
-Wmodule # Warn once per calling module -Wonce # Warn once per Python process -Wignore # Never warn ``` The action names can be abbreviated as desired and the interpreter will resolve them to the appropriate action name. For example, `-Wi` is the same as `-Wignore`. The full fo...
large_dataset/raw/docs/python/cmdline/cmdline_310.md
703fcbb1-f529-5761-a81f-de0d3fb282f9
docs
python
python_cmdline
310
18
The *module* field matches the (fully qualified) module name; this match is case-sensitive. The *lineno* field matches the line number, where zero matches all line numbers and is thus equivalent to an omitted line number. Multiple [`-W`](#cmdoption-W) options can be given; when a warning matches m...
large_dataset/raw/docs/python/cmdline/cmdline_310.md
a98e337a-df28-5419-990b-62616dc87f32
docs
python
python_cmdline
310
19
function can be used to use a regular expression on the warning message. See [The Warnings Filter](../library/warnings.html#warning-filter) and [Describing Warning Filters](../library/warnings.html#describing-warning-filters) for more details. `-x`[¶](#cmdoption-x "Permalink to this definition") : Skip ...
large_dataset/raw/docs/python/cmdline/cmdline_310.md
43388255-3353-590c-be8b-cd3b00963e83
docs
python
python_cmdline
310
20
* `-X tracemalloc` to start tracing Python memory allocations using the [`tracemalloc`](../library/tracemalloc.html#module-tracemalloc "tracemalloc: Trace memory allocations.") module. By default, only the most recent frame is stored in a traceback of a trace. Use `-X tracemalloc=NFRAME` to start ...
large_dataset/raw/docs/python/cmdline/cmdline_310.md
d22e2dd3-e08e-500d-b0b5-884114056ddd
docs
python
python_cmdline
310
21
asyncio'`. See also [`PYTHONPROFILEIMPORTTIME`](#envvar-PYTHONPROFILEIMPORTTIME). * `-X dev`: enable [Python Development Mode](../library/devmode.html#devmode), introducing additional runtime checks that are too expensive to be enabled by default. * `-X utf8` enables the [Python UTF-8 Mode](.....
large_dataset/raw/docs/python/cmdline/cmdline_310.md
22815c0d-38e1-5b31-b907-00e403b798e7
docs
python
python_cmdline
310
22
It also allows passing arbitrary values and retrieving them through the [`sys._xoptions`](../library/sys.html#sys._xoptions "sys._xoptions") dictionary. Changed in version 3.2: The [`-X`](#cmdoption-X) option was added. New in version 3.3: The `-X faulthandler` option. New in version 3.4: The `-X...
large_dataset/raw/docs/python/cmdline/cmdline_310.md
aacdcdae-6f71-50b3-bec8-b37e29163d75
docs
python
python_cmdline
310
23
Deprecated since version 3.9, removed in version 3.10: The `-X oldparser` option. ### 1.1.4. Options you shouldn’t use[¶](#options-you-shouldn-t-use "Permalink to this headline") `-J`[¶](#cmdoption-J "Permalink to this definition") : Reserved for use by [Jython](https://www.jython.org/). ## 1.2. Environment va...
large_dataset/raw/docs/python/cmdline/cmdline_310.md
a0950ba5-de8b-5ebd-9def-a45cf7bcec2c
docs
python
python_cmdline
310
24
When [`PYTHONHOME`](#envvar-PYTHONHOME) is set to a single directory, its value replaces both `prefix` and `exec_prefix`. To specify different values for these, set [`PYTHONHOME`](#envvar-PYTHONHOME) to `prefix:exec_prefix`. `PYTHONPATH`[¶](#envvar-PYTHONPATH "Permalink to this definition") : Augment the...
large_dataset/raw/docs/python/cmdline/cmdline_310.md
900c64d7-c2be-576e-97c5-c4751f6bd4ed
docs
python
python_cmdline
310
25
is *always* appended to [`PYTHONPATH`](#envvar-PYTHONPATH). An additional directory will be inserted in the search path in front of [`PYTHONPATH`](#envvar-PYTHONPATH) as described above under [Interface options](#using-on-interface-options). The search path can be manipulated from within a Python p...
large_dataset/raw/docs/python/cmdline/cmdline_310.md
6402931b-0e90-5e6e-bd6d-5edecc0d1c6c
docs
python
python_cmdline
310
26
that objects defined or imported in it can be used without qualification in the interactive session. You can also change the prompts [`sys.ps1`](../library/sys.html#sys.ps1 "sys.ps1") and [`sys.ps2`](../library/sys.html#sys.ps2 "sys.ps2") and the hook [`sys.__interactivehook__`](../library/sys.html#sys.__in...
large_dataset/raw/docs/python/cmdline/cmdline_310.md
a5a3b3ff-b8ec-5a12-b527-c30c2e56b475
docs
python
python_cmdline
310
27
containing the callable will be imported and then the callable will be run by the default implementation of [`sys.breakpointhook()`](../library/sys.html#sys.breakpointhook "sys.breakpointhook") which itself is called by built-in [`breakpoint()`](../library/functions.html#breakpoint "breakpoint"). If not set...
large_dataset/raw/docs/python/cmdline/cmdline_310.md
84e55a41-8ce9-58fa-b84a-d512d0900a4e
docs
python
python_cmdline
310
28
: If this is set to a non-empty string it is equivalent to specifying the [`-i`](#cmdoption-i) option. This variable can also be modified by Python code using [`os.environ`](../library/os.html#os.environ "os.environ") to force inspect mode on program termination. Raises an [auditing event](../librar...
large_dataset/raw/docs/python/cmdline/cmdline_310.md
d5cc482c-da2f-57dc-a026-766a155aa296
docs
python
python_cmdline
310
29
: If this is set, Python ignores case in [`import`](../reference/simple_stmts.html#import) statements. This only works on Windows and macOS. `PYTHONDONTWRITEBYTECODE`[¶](#envvar-PYTHONDONTWRITEBYTECODE "Permalink to this definition") : If this is set to a non-empty string, Python won’t try to write `.pyc` ...
large_dataset/raw/docs/python/cmdline/cmdline_310.md
05badb98-1775-5722-89d5-73917934cfb2
docs
python
python_cmdline
310
30
If [`PYTHONHASHSEED`](#envvar-PYTHONHASHSEED) is set to an integer value, it is used as a fixed seed for generating the hash() of the types covered by the hash randomization. Its purpose is to allow repeatable hashing, such as for selftests for the interpreter itself, or to allow a cluster of pytho...
large_dataset/raw/docs/python/cmdline/cmdline_310.md