id
int64
0
2.13k
file_path
stringlengths
38
93
function_signature
stringlengths
9
64
body
stringlengths
6
16.2k
parameters
stringlengths
8
16.8k
examples
stringlengths
2
6.12k
content
stringlengths
31
16.3k
embeddings
listlengths
768
768
2,100
..\pandas\reference\api\pandas.tseries.offsets.YearEnd.is_quarter_end.html
pandas.tseries.offsets.YearEnd.is_quarter_end
YearEnd.is_quarter_end(ts)# Return boolean whether a timestamp occurs on the quarter end.
No parameters found
['>>> ts = pd.Timestamp(2022, 1, 1)\n>>> freq = pd.offsets.Hour(5)\n>>> freq.is_quarter_end(ts)\nFalse']
pandas.tseries.offsets.YearEnd.is_quarter_end YearEnd.is_quarter_end(ts)# Return boolean whether a timestamp occurs on the quarter end.
[ -0.2125249207019806, -0.3490399122238159, -0.21934813261032104, -0.06943851709365845, -0.24999521672725677, -0.0885884240269661, 0.17757846415042877, 0.3010641932487488, -0.1340063363313675, -0.0365750789642334, 0.29310980439186096, 0.26715216040611267, 0.16407740116119385, 0.0879944413900...
2,101
..\pandas\reference\api\pandas.tseries.offsets.Micro.is_quarter_end.html
pandas.tseries.offsets.Micro.is_quarter_end
Micro.is_quarter_end(ts)# Return boolean whether a timestamp occurs on the quarter end.
No parameters found
['>>> ts = pd.Timestamp(2022, 1, 1)\n>>> freq = pd.offsets.Hour(5)\n>>> freq.is_quarter_end(ts)\nFalse']
pandas.tseries.offsets.Micro.is_quarter_end Micro.is_quarter_end(ts)# Return boolean whether a timestamp occurs on the quarter end.
[ -0.1995306760072708, -0.5055128335952759, -0.22536729276180267, -0.11034201085567474, -0.23985174298286438, -0.057556431740522385, 0.28319045901298523, 0.2628835439682007, -0.1639578640460968, 0.07176561653614044, 0.3028832972049713, 0.24655739963054657, 0.06596317142248154, 0.127499163150...
2,102
..\pandas\reference\api\pandas.tseries.offsets.YearEnd.is_quarter_start.html
pandas.tseries.offsets.YearEnd.is_quarter_start
YearEnd.is_quarter_start(ts)# Return boolean whether a timestamp occurs on the quarter start.
No parameters found
['>>> ts = pd.Timestamp(2022, 1, 1)\n>>> freq = pd.offsets.Hour(5)\n>>> freq.is_quarter_start(ts)\nTrue']
pandas.tseries.offsets.YearEnd.is_quarter_start YearEnd.is_quarter_start(ts)# Return boolean whether a timestamp occurs on the quarter start.
[ -0.33861061930656433, -0.3021887242794037, -0.18229880928993225, 0.013131734915077686, -0.23286056518554688, -0.11309057474136353, 0.2522883713245392, 0.2304276078939438, -0.14548654854297638, -0.11244464665651321, 0.39460209012031555, 0.2595192492008209, 0.11013128608465195, 0.12231417000...
2,103
..\pandas\reference\api\pandas.tseries.offsets.Micro.is_quarter_start.html
pandas.tseries.offsets.Micro.is_quarter_start
Micro.is_quarter_start(ts)# Return boolean whether a timestamp occurs on the quarter start.
No parameters found
['>>> ts = pd.Timestamp(2022, 1, 1)\n>>> freq = pd.offsets.Hour(5)\n>>> freq.is_quarter_start(ts)\nTrue']
pandas.tseries.offsets.Micro.is_quarter_start Micro.is_quarter_start(ts)# Return boolean whether a timestamp occurs on the quarter start.
[ -0.3530239164829254, -0.4123936593532562, -0.17530524730682373, -0.005823263432830572, -0.22587327659130096, -0.08084163814783096, 0.3605119287967682, 0.21948200464248657, -0.21410773694515228, -0.009201092645525932, 0.40418583154678345, 0.25806161761283875, -0.006950960494577885, 0.172090...
2,104
..\pandas\reference\api\pandas.tseries.offsets.YearEnd.is_year_end.html
pandas.tseries.offsets.YearEnd.is_year_end
YearEnd.is_year_end(ts)# Return boolean whether a timestamp occurs on the year end.
No parameters found
['>>> ts = pd.Timestamp(2022, 1, 1)\n>>> freq = pd.offsets.Hour(5)\n>>> freq.is_year_end(ts)\nFalse']
pandas.tseries.offsets.YearEnd.is_year_end YearEnd.is_year_end(ts)# Return boolean whether a timestamp occurs on the year end.
[ -0.18132023513317108, -0.3589029610157013, -0.19910672307014465, -0.010359794832766056, -0.24602165818214417, -0.12681420147418976, 0.16026166081428528, 0.3032566010951996, -0.044018156826496124, -0.05842931941151619, 0.4183592200279236, 0.23098136484622955, 0.11158096045255661, 0.09516459...
2,105
..\pandas\reference\api\pandas.tseries.offsets.YearEnd.is_year_start.html
pandas.tseries.offsets.YearEnd.is_year_start
YearEnd.is_year_start(ts)# Return boolean whether a timestamp occurs on the year start.
No parameters found
['>>> ts = pd.Timestamp(2022, 1, 1)\n>>> freq = pd.offsets.Hour(5)\n>>> freq.is_year_start(ts)\nTrue']
pandas.tseries.offsets.YearEnd.is_year_start YearEnd.is_year_start(ts)# Return boolean whether a timestamp occurs on the year start.
[ -0.2739196717739105, -0.30930960178375244, -0.16610972583293915, 0.06832075119018555, -0.24258790910243988, -0.14552363753318787, 0.24513478577136993, 0.214100643992424, -0.04588393494486809, -0.15550421178340912, 0.49753960967063904, 0.18729203939437866, 0.06178421527147293, 0.11857508122...
2,106
..\pandas\reference\api\pandas.tseries.offsets.Micro.is_year_end.html
pandas.tseries.offsets.Micro.is_year_end
Micro.is_year_end(ts)# Return boolean whether a timestamp occurs on the year end.
No parameters found
['>>> ts = pd.Timestamp(2022, 1, 1)\n>>> freq = pd.offsets.Hour(5)\n>>> freq.is_year_end(ts)\nFalse']
pandas.tseries.offsets.Micro.is_year_end Micro.is_year_end(ts)# Return boolean whether a timestamp occurs on the year end.
[ -0.17835335433483124, -0.41696202754974365, -0.19845902919769287, -0.02254459261894226, -0.2025565654039383, -0.11104407161474228, 0.21921375393867493, 0.3153384029865265, -0.08609887957572937, 0.01720014214515686, 0.46368056535720825, 0.2566663920879364, 0.03852508217096329, 0.17541487514...
2,107
..\pandas\reference\api\pandas.tseries.offsets.YearEnd.kwds.html
pandas.tseries.offsets.YearEnd.kwds
YearEnd.kwds# Return a dict of extra parameters for the offset.
No parameters found
['>>> pd.DateOffset(5).kwds\n{}', ">>> pd.offsets.FY5253Quarter().kwds\n{'weekday': 0,\n 'startingMonth': 1,\n 'qtr_with_extra_week': 1,\n 'variation': 'nearest'}"]
pandas.tseries.offsets.YearEnd.kwds YearEnd.kwds# Return a dict of extra parameters for the offset.
[ -0.03455659747123718, -0.3822152018547058, -0.13224665820598602, -0.010689198970794678, 0.1005050465464592, 0.06616988033056259, 0.35024258494377136, 0.1528891772031784, -0.1605803370475769, 0.1477937549352646, 0.14480814337730408, 0.27038243412971497, 0.14874902367591858, 0.05359570309519...
2,108
..\pandas\reference\api\pandas.tseries.offsets.Micro.is_year_start.html
pandas.tseries.offsets.Micro.is_year_start
Micro.is_year_start(ts)# Return boolean whether a timestamp occurs on the year start.
No parameters found
['>>> ts = pd.Timestamp(2022, 1, 1)\n>>> freq = pd.offsets.Hour(5)\n>>> freq.is_year_start(ts)\nTrue']
pandas.tseries.offsets.Micro.is_year_start Micro.is_year_start(ts)# Return boolean whether a timestamp occurs on the year start.
[ -0.2843782901763916, -0.3875344395637512, -0.15316824615001678, 0.0628255233168602, -0.22806088626384735, -0.11788945645093918, 0.3439609110355377, 0.21946002542972565, -0.11426319926977158, -0.08138811588287354, 0.5509884357452393, 0.19839692115783691, -0.036263130605220795, 0.20137055218...
2,109
..\pandas\reference\api\pandas.tseries.offsets.YearEnd.month.html
pandas.tseries.offsets.YearEnd.month
YearEnd.month#
No parameters found
[]
pandas.tseries.offsets.YearEnd.month YearEnd.month#
[ -0.10996218025684357, -0.3613849878311157, -0.2453174740076065, -0.02916056104004383, 0.21749724447727203, 0.18691059947013855, 0.3671204745769501, 0.1751040518283844, -0.18556974828243256, 0.2577051818370819, 0.10985174030065536, 0.21367958188056946, 0.31319504976272583, 0.237261906266212...
2,110
..\pandas\reference\api\pandas.tseries.offsets.Micro.kwds.html
pandas.tseries.offsets.Micro.kwds
Micro.kwds# Return a dict of extra parameters for the offset.
No parameters found
['>>> pd.DateOffset(5).kwds\n{}', ">>> pd.offsets.FY5253Quarter().kwds\n{'weekday': 0,\n 'startingMonth': 1,\n 'qtr_with_extra_week': 1,\n 'variation': 'nearest'}"]
pandas.tseries.offsets.Micro.kwds Micro.kwds# Return a dict of extra parameters for the offset.
[ -0.039321061223745346, -0.6342628598213196, -0.13317988812923431, -0.013508287258446217, 0.1521051824092865, 0.12941491603851318, 0.4687343239784241, 0.09489449858665466, -0.24219855666160583, 0.25275638699531555, 0.03322125971317291, 0.3018379509449005, -0.005832227412611246, 0.1369849294...
2,111
..\pandas\reference\api\pandas.tseries.offsets.YearEnd.n.html
pandas.tseries.offsets.YearEnd.n
YearEnd.n#
No parameters found
[]
pandas.tseries.offsets.YearEnd.n YearEnd.n#
[ -0.20423287153244019, -0.42143312096595764, -0.23486128449440002, 0.0951664000749588, 0.08944466710090637, 0.029664913192391396, 0.3376699686050415, 0.13611488044261932, -0.12949994206428528, 0.11580564081668854, 0.2472204715013504, -0.023206397891044617, 0.30036213994026184, 0.22039231657...
2,112
..\pandas\reference\api\pandas.tseries.offsets.Micro.n.html
pandas.tseries.offsets.Micro.n
Micro.n#
No parameters found
[]
pandas.tseries.offsets.Micro.n Micro.n#
[ -0.23689626157283783, -0.7442082762718201, -0.23218131065368652, 0.14327536523342133, 0.22136163711547852, 0.17629003524780273, 0.45190444588661194, 0.0035650983918458223, -0.2306438386440277, 0.24376781284809113, 0.12425167113542557, -0.05471611022949219, 0.10172326862812042, 0.3829907774...
2,113
..\pandas\reference\api\pandas.tseries.offsets.YearEnd.name.html
pandas.tseries.offsets.YearEnd.name
YearEnd.name# Return a string representing the base frequency.
No parameters found
[">>> pd.offsets.Hour().name\n'h'", ">>> pd.offsets.Hour(5).name\n'h'"]
pandas.tseries.offsets.YearEnd.name YearEnd.name# Return a string representing the base frequency.
[ -0.11035026609897614, -0.3752926290035248, -0.13522152602672577, 0.027580752968788147, 0.18396833539009094, 0.05037282034754753, 0.22213858366012573, 0.25568974018096924, -0.3274790644645691, 0.15078850090503693, 0.041484035551548004, 0.0862751454114914, 0.16045716404914856, 0.150128617882...
2,114
..\pandas\reference\api\pandas.tseries.offsets.Micro.name.html
pandas.tseries.offsets.Micro.name
Micro.name# Return a string representing the base frequency.
No parameters found
[">>> pd.offsets.Hour().name\n'h'", ">>> pd.offsets.Hour(5).name\n'h'"]
pandas.tseries.offsets.Micro.name Micro.name# Return a string representing the base frequency.
[ -0.08733722567558289, -0.6118060350418091, -0.16107413172721863, 0.05039103701710701, 0.2896854877471924, 0.13749901950359344, 0.3846401870250702, 0.1947091519832611, -0.4183288514614105, 0.27816152572631836, -0.09165134280920029, 0.10729249566793442, 0.04760117083787918, 0.337053090333938...
2,115
..\pandas\reference\api\pandas.tseries.offsets.Micro.nanos.html
pandas.tseries.offsets.Micro.nanos
Micro.nanos# Return an integer of the total number of nanoseconds.
Raises: ValueErrorIf the frequency is non-fixed.
['>>> pd.offsets.Hour(5).nanos\n18000000000000']
pandas.tseries.offsets.Micro.nanos Micro.nanos# Return an integer of the total number of nanoseconds.
[ -0.3580178916454315, -0.4914131760597229, -0.2869141697883606, -0.04356737062335014, 0.10856182128190994, -0.12900042533874512, 0.258581280708313, 0.13132143020629883, -0.050396326929330826, 0.3407748341560364, 0.3236249089241028, 0.009837066754698753, -0.1077011376619339, 0.38520216941833...
2,116
..\pandas\reference\api\pandas.tseries.offsets.YearEnd.nanos.html
pandas.tseries.offsets.YearEnd.nanos
YearEnd.nanos#
No parameters found
[]
pandas.tseries.offsets.YearEnd.nanos YearEnd.nanos#
[ -0.11232902854681015, -0.35387420654296875, -0.20205220580101013, -0.03633799031376839, 0.19436173141002655, 0.022767184302210808, 0.44511666893959045, 0.07945016771554947, -0.23192505538463593, 0.15310566127300262, 0.22528773546218872, 0.06071195378899574, 0.22618310153484344, 0.329605638...
2,117
..\pandas\reference\api\pandas.tseries.offsets.Micro.normalize.html
pandas.tseries.offsets.Micro.normalize
Micro.normalize#
No parameters found
[]
pandas.tseries.offsets.Micro.normalize Micro.normalize#
[ -0.3817630112171173, -0.553257167339325, -0.20767439901828766, -0.14318779110908508, 0.18377844989299774, 0.17193444073200226, 0.3383499085903168, 0.1588228940963745, -0.35807687044143677, 0.3449684679508209, -0.07391000539064407, 0.15342801809310913, 0.16540925204753876, 0.361971288919448...
2,118
..\pandas\reference\api\pandas.tseries.offsets.YearEnd.normalize.html
pandas.tseries.offsets.YearEnd.normalize
YearEnd.normalize#
No parameters found
[]
pandas.tseries.offsets.YearEnd.normalize YearEnd.normalize#
[ -0.3795486390590668, -0.3109090328216553, -0.1802927851676941, -0.1624169796705246, 0.1489238440990448, 0.12755928933620453, 0.2324499934911728, 0.20803992450237274, -0.2712861895561218, 0.24690021574497223, 0.04032624885439873, 0.13737021386623383, 0.34186291694641113, 0.25133806467056274...
2,119
..\pandas\reference\api\pandas.tseries.offsets.YearEnd.rule_code.html
pandas.tseries.offsets.YearEnd.rule_code
YearEnd.rule_code#
No parameters found
[]
pandas.tseries.offsets.YearEnd.rule_code YearEnd.rule_code#
[ -0.12699052691459656, -0.30534565448760986, -0.22695700824260712, 0.03425873443484306, 0.20659908652305603, 0.18871824443340302, 0.366034597158432, 0.2604556679725647, -0.1559707522392273, -0.019246166571974754, 0.27893680334091187, 0.12624894082546234, 0.12197598069906235, 0.2888693511486...
2,120
..\pandas\reference\api\pandas.tseries.offsets.Micro.rule_code.html
pandas.tseries.offsets.Micro.rule_code
Micro.rule_code#
No parameters found
[]
pandas.tseries.offsets.Micro.rule_code Micro.rule_code#
[ -0.16399288177490234, -0.5619863271713257, -0.23110051453113556, 0.035266678780317307, 0.28468289971351624, 0.3059549927711487, 0.47475114464759827, 0.15841013193130493, -0.2621043026447296, 0.11732887476682663, 0.20931975543498993, 0.12365417182445526, -0.10027104616165161, 0.433885931968...
2,121
..\pandas\reference\api\pandas.UInt16Dtype.html
pandas.UInt16Dtype
class pandas.UInt16Dtype[source]# An ExtensionDtype for uint16 integer data. Uses pandas.NA as its missing value, rather than numpy.nan. Attributes None Methods None
No parameters found
['>>> ser = pd.Series([2, pd.NA], dtype=pd.Int8Dtype())\n>>> ser.dtype\nInt8Dtype()', '>>> ser = pd.Series([2, pd.NA], dtype=pd.Int16Dtype())\n>>> ser.dtype\nInt16Dtype()', '>>> ser = pd.Series([2, pd.NA], dtype=pd.Int32Dtype())\n>>> ser.dtype\nInt32Dtype()', '>>> ser = pd.Series([2, pd.NA], dtype=pd.Int64Dtype())\n>>>...
pandas.UInt16Dtype class pandas.UInt16Dtype[source]# An ExtensionDtype for uint16 integer data. Uses pandas.NA as its missing value, rather than numpy.nan. Attributes None Methods None
[ 0.11114408075809479, -0.35680636763572693, -0.1306423842906952, 0.17110465466976166, 0.5058011412620544, 0.27801597118377686, 0.3988853991031647, 0.2844623923301697, 0.12488795816898346, 0.2845558822154999, 0.1636364907026291, -0.07220964133739471, -0.0146547332406044, -0.0728624239563942,...
2,122
..\pandas\reference\api\pandas.tseries.offsets.Milli.copy.html
pandas.tseries.offsets.Milli.copy
Milli.copy()# Return a copy of the frequency.
No parameters found
['>>> freq = pd.DateOffset(1)\n>>> freq_copy = freq.copy()\n>>> freq is freq_copy\nFalse']
pandas.tseries.offsets.Milli.copy Milli.copy()# Return a copy of the frequency.
[ -0.2190794050693512, -0.552554190158844, -0.08016473799943924, -0.045541174709796906, 0.032968588173389435, -0.038808200508356094, 0.19174052774906158, 0.1640525609254837, -0.4808254837989807, 0.44492995738983154, -0.0027430399786680937, 0.24030804634094238, 0.12083294242620468, 0.18281576...
2,123
..\pandas\reference\api\pandas.UInt32Dtype.html
pandas.UInt32Dtype
class pandas.UInt32Dtype[source]# An ExtensionDtype for uint32 integer data. Uses pandas.NA as its missing value, rather than numpy.nan. Attributes None Methods None
No parameters found
['>>> ser = pd.Series([2, pd.NA], dtype=pd.Int8Dtype())\n>>> ser.dtype\nInt8Dtype()', '>>> ser = pd.Series([2, pd.NA], dtype=pd.Int16Dtype())\n>>> ser.dtype\nInt16Dtype()', '>>> ser = pd.Series([2, pd.NA], dtype=pd.Int32Dtype())\n>>> ser.dtype\nInt32Dtype()', '>>> ser = pd.Series([2, pd.NA], dtype=pd.Int64Dtype())\n>>>...
pandas.UInt32Dtype class pandas.UInt32Dtype[source]# An ExtensionDtype for uint32 integer data. Uses pandas.NA as its missing value, rather than numpy.nan. Attributes None Methods None
[ 0.13898353278636932, -0.3720096945762634, -0.1283545196056366, 0.16641585528850555, 0.4746212363243103, 0.31992143392562866, 0.3686973750591278, 0.2907209098339081, 0.014791855588555336, 0.2791750133037567, 0.1156415045261383, -0.0477260947227478, -0.002908392110839486, -0.0829220488667488...
2,124
..\pandas\reference\api\pandas.UInt64Dtype.html
pandas.UInt64Dtype
class pandas.UInt64Dtype[source]# An ExtensionDtype for uint64 integer data. Uses pandas.NA as its missing value, rather than numpy.nan. Attributes None Methods None
No parameters found
['>>> ser = pd.Series([2, pd.NA], dtype=pd.Int8Dtype())\n>>> ser.dtype\nInt8Dtype()', '>>> ser = pd.Series([2, pd.NA], dtype=pd.Int16Dtype())\n>>> ser.dtype\nInt16Dtype()', '>>> ser = pd.Series([2, pd.NA], dtype=pd.Int32Dtype())\n>>> ser.dtype\nInt32Dtype()', '>>> ser = pd.Series([2, pd.NA], dtype=pd.Int64Dtype())\n>>>...
pandas.UInt64Dtype class pandas.UInt64Dtype[source]# An ExtensionDtype for uint64 integer data. Uses pandas.NA as its missing value, rather than numpy.nan. Attributes None Methods None
[ 0.21337014436721802, -0.33852002024650574, -0.12454599887132645, 0.18312090635299683, 0.4724567234516144, 0.31929683685302734, 0.3360399007797241, 0.35993871092796326, 0.00009693613537820056, 0.23651893436908722, 0.1559544950723648, -0.058934833854436874, 0.046745385974645615, -0.097530625...
2,125
..\pandas\reference\api\pandas.UInt8Dtype.html
pandas.UInt8Dtype
class pandas.UInt8Dtype[source]# An ExtensionDtype for uint8 integer data. Uses pandas.NA as its missing value, rather than numpy.nan. Attributes None Methods None
No parameters found
['>>> ser = pd.Series([2, pd.NA], dtype=pd.Int8Dtype())\n>>> ser.dtype\nInt8Dtype()', '>>> ser = pd.Series([2, pd.NA], dtype=pd.Int16Dtype())\n>>> ser.dtype\nInt16Dtype()', '>>> ser = pd.Series([2, pd.NA], dtype=pd.Int32Dtype())\n>>> ser.dtype\nInt32Dtype()', '>>> ser = pd.Series([2, pd.NA], dtype=pd.Int64Dtype())\n>>>...
pandas.UInt8Dtype class pandas.UInt8Dtype[source]# An ExtensionDtype for uint8 integer data. Uses pandas.NA as its missing value, rather than numpy.nan. Attributes None Methods None
[ 0.1560790091753006, -0.2476477473974228, -0.1617823839187622, 0.0908321961760521, 0.44405412673950195, 0.2662586569786072, 0.48192721605300903, 0.3384231626987457, 0.14210356771945953, 0.25165313482284546, 0.05543239042162895, -0.08488688617944717, 0.018018649891018867, -0.1330708414316177...
2,126
..\pandas\reference\api\pandas.unique.html
pandas.unique
pandas.unique(values)[source]# Return unique values based on a hash table. Uniques are returned in order of appearance. This does NOT sort. Significantly faster than numpy.unique for long enough sequences. Includes NA values.
Parameters: values1d array-like Returns: numpy.ndarray or ExtensionArrayThe return can be: Index : when the input is an Index Categorical : when the input is a Categorical dtype ndarray : when the input is a Series/ndarray Return numpy.ndarray or ExtensionArray.
['>>> pd.unique(pd.Series([2, 1, 3, 3]))\narray([2, 1, 3])', '>>> pd.unique(pd.Series([2] + [1] * 5))\narray([2, 1])', '>>> pd.unique(pd.Series([pd.Timestamp("20160101"), pd.Timestamp("20160101")]))\narray([\'2016-01-01T00:00:00.000000000\'], dtype=\'datetime64[ns]\')', '>>> pd.unique(\n... pd.Series(\n... ...
pandas.unique pandas.unique(values)[source]# Return unique values based on a hash table. Uniques are returned in order of appearance. This does NOT sort. Significantly faster than numpy.unique for long enough sequences. Includes NA values.
[ 0.1429581493139267, -0.4304848313331604, -0.281268835067749, -0.01773940958082676, -0.00787841435521841, 0.1537524312734604, 0.08652638643980026, 0.2891901731491089, -0.10395848006010056, 0.08108163625001907, -0.19624267518520355, 0.2564118206501007, -0.1116981953382492, 0.1177515536546707...
2,127
..\pandas\reference\api\pandas.util.hash_array.html
pandas.util.hash_array
pandas.util.hash_array(vals, encoding='utf8', hash_key='0123456789123456', categorize=True)[source]# Given a 1d array, return an array of deterministic integers.
Parameters: valsndarray or ExtensionArray encodingstr, default ‘utf8’Encoding for data & key when strings. hash_keystr, default _default_hash_keyHash_key for string key to encode. categorizebool, default TrueWhether to first categorize object arrays before hashing. This is more efficient when the array contains duplica...
['>>> pd.util.hash_array(np.array([1, 2, 3]))\narray([ 6238072747940578789, 15839785061582574730, 2185194620014831856],\n dtype=uint64)']
pandas.util.hash_array pandas.util.hash_array(vals, encoding='utf8', hash_key='0123456789123456', categorize=True)[source]# Given a 1d array, return an array of deterministic integers.
[ 0.140348881483078, -0.2626645565032959, -0.3297199606895447, -0.052787791937589645, 0.46659713983535767, 0.16346193850040436, 0.44234785437583923, 0.20212434232234955, 0.3340880274772644, 0.2800041437149048, 0.0751248449087143, 0.20909348130226135, -0.28859224915504456, 0.21805915236473083...
2,128
..\pandas\reference\api\pandas.util.hash_pandas_object.html
pandas.util.hash_pandas_object
pandas.util.hash_pandas_object(obj, index=True, encoding='utf8', hash_key='0123456789123456', categorize=True)[source]# Return a data hash of the Index/Series/DataFrame.
Parameters: objIndex, Series, or DataFrame indexbool, default TrueInclude the index in the hash (if Series/DataFrame). encodingstr, default ‘utf8’Encoding for data & key when strings. hash_keystr, default _default_hash_keyHash_key for string key to encode. categorizebool, default TrueWhether to first categorize object ...
['>>> pd.util.hash_pandas_object(pd.Series([1, 2, 3]))\n0 14639053686158035780\n1 3869563279212530728\n2 393322362522515241\ndtype: uint64']
pandas.util.hash_pandas_object pandas.util.hash_pandas_object(obj, index=True, encoding='utf8', hash_key='0123456789123456', categorize=True)[source]# Return a data hash of the Index/Series/DataFrame.
[ -0.008329705335199833, -0.10455133765935898, -0.15800677239894867, 0.09951090067625046, 0.23982086777687073, 0.3541952073574066, 0.23715835809707642, 0.5011590123176575, 0.1216806173324585, 0.10642874985933304, -0.13064967095851898, 0.301675409078598, -0.07657516747713089, 0.25432822108268...
2,129
..\pandas\reference\api\pandas.wide_to_long.html
pandas.wide_to_long
pandas.wide_to_long(df, stubnames, i, j, sep='', suffix='\\d+')[source]# Unpivot a DataFrame from wide to long format. Less flexible but more user-friendly than melt. With stubnames [‘A’, ‘B’], this function expects to find one or more group of columns with format A-suffix1, A-suffix2,…, B-suffix1, B-suffix2,… You spec...
Parameters: dfDataFrameThe wide-format DataFrame. stubnamesstr or list-likeThe stub name(s). The wide format variables are assumed to start with the stub names. istr or list-likeColumn(s) to use as id variable(s). jstrThe name of the sub-observation variable. What you wish to name your suffix in the long format. sepstr...
['>>> np.random.seed(123)\n>>> df = pd.DataFrame({"A1970" : {0 : "a", 1 : "b", 2 : "c"},\n... "A1980" : {0 : "d", 1 : "e", 2 : "f"},\n... "B1970" : {0 : 2.5, 1 : 1.2, 2 : .7},\n... "B1980" : {0 : 3.2, 1 : 1.3, 2 : .1},\n... "X" : dict(zip(r...
pandas.wide_to_long pandas.wide_to_long(df, stubnames, i, j, sep='', suffix='\\d+')[source]# Unpivot a DataFrame from wide to long format. Less flexible but more user-friendly than melt. With stubnames [‘A’, ‘B’], this function expects to find one or more group of columns with format A-suffix1, A-suffix2,…, B-suffix1, ...
[ -0.09074505418539047, -0.36310428380966187, -0.10312260687351227, -0.11543034017086029, 0.30316558480262756, 0.24317143857479095, 0.193928524851799, 0.3523600995540619, 0.06288214772939682, 0.04980722814798355, -0.20734061300754547, 0.08632487058639526, 0.11112932115793228, 0.0740318447351...