Changelog¶
All notable changes to numdaplot are listed in this file.
The format follows Keep a Changelog, and numdaplot follows Semantic Versioning.
[0.2.0] - 2026-11-13¶
Added¶
Table.shapegives the number of rows and columns of a table as aShape, likeArray.shape.Unmatched.KEEPkeeps the values aValueMappinggives no new value, so that only the listed values change.Bracketsrefuses it.Array.convertchanges the type of the values of an Array with anArrayConversion, asTable.convertdoes for columns.Table.count_valuesgives how many rows hold each value of a column with aValueCount, as a number or, withMeasure.RATIO, as a fraction of every row, from the most frequent value to the least frequent. WithValueCount(weights="weight"), each row counts as much as its weight, such as the weights of a survey, and a negative weight raisesInvalidWeightError.Sharegives the fraction of the values satisfying a rule, of an Array or of each group inaggregate,pivot_tableanddescribe, without the missing values unlessmissing=CountedMissing.INCLUDED.Aggregation(row_count=...)adds the number of rows of each group, without choosing a column, right after the group columns.calculationsbecomes optional, andEmptyAggregationErroris raised when neither is given.Equal,NotEqual,Greater,GreaterOrEqual,LessandLessOrEqualaccept an Array as reference value, which compares each value with the value at its position, such as the rows whose city of departure is also their city of arrival withndp.Equal(table.column("arrival")).Betweenaccepts Arrays as bounds, and raisesInvalidBoundsErrorat the first position whose low bound is above its high bound. These rules work incheck,select,filterand in aShare, by group inaggregate,pivot_tableanddescribetoo.FirstandLastchoose the first or the last positions in aRegion, such as the first 10 rows of a sorted Table withtable.take(ndp.Region(rows=ndp.First(10))). A dimension shorter than the count gives every position.BarChart(value_labels=ValueLabels(decimals=2))writes the value of each bar past its end, or in the middle of each part of stacked bars, rounded to the decimals asked. The axis makes room for the values, values too wide for their bars turn upright, and values that still do not fit are left out with aReadabilityWarning.Table.applyapplies a math function, a time function or aValueMappingto several columns at once with aTableApplication, each column replaced at its place. An integer or boolean column keeps its type when aValueMappinggives it missing values.
Changed¶
Conversionis renamedTableConversion.Sortingis renamedTableSorting.TableConversiontakescolumns, a list, in place ofcolumn, so thatTable.convertconverts several columns to the same type at once.- The default label of the axis of several series is
Value, as for an Array, since the legend names them. The default title still names them, such asprice, cost by month. One series keeps its column name. - The legend and the colors of the groups of a
ScatterChartcolor_bycolumn follow the natural order of its values, such asCluster 2beforeCluster 10and without regard to case, or the order of the categories of a column of categories, instead of the order of the rows. A group keeps its color whatever the order of the rows. OutOfDomainErrorandUnmatchedValueErrorname the Table column holding the value, such as a value in no bracket ofBracketsinTable.convert.- The message of
UnmatchedValueErrorfor aValueMappingalso offersothers=Unmatched.KEEP. - Numbers given by a
ValueMappingto an Array of numbers take its type, as with the operators:INT8codes stayINT8, integers given to decimals give decimals, and a number that does not fit raisesValueConversionError. Decimals given to integers still giveFLOAT64. - The message of
IntegerOverflowErrorgives the range of the type, and advisesINT64for smaller integers,FLOAT64forINT64andUINT64. - The documentation shows the latest version note of each object and folds the earlier ones in a version history. Every enum member tells its version. Class pages no longer repeat the parameters of the creation.
- The documentation lists
TableConversionandBooleanRulein a Conversions section. - The documentation lists
Measurein a Measures section, shared by tables and plots, and groups the settings ofaggregate,pivot_table,describeandcount_valuesunder Statistic settings. - After ten series or
color_bygroups without chosen colors, the default colors go on with the light colors of the first ten instead of starting again. After 20, they start again with aReadabilityWarning. LegendPosition.BESTplaces the legend past the axes on the right when it would hide a value inside them, such as a point, a part of a line or a bar.- The title of a Plot is centered above the whole Plot, its legend included, and goes on several lines when it is
too wide. It is the title of the matplotlib figure, or subfigure in a
Figure, given byto_matplotlib. - The
DuplicateColumnErrorof anAggregationgiving two results the same name advises aresult_namefor each calculation. - The documentation lists every method and operator of
Array,TableandPlot,Table.pivot_tableandTable.joinincluded, in sections that follow the code: the same notion has the same title on every page, such as Calculation and Layout. - The documentation links each object to its source on GitHub instead of showing the code.
- The documentation groups the errors and warnings by notion, such as File errors, Type errors and Plot errors.
- The advice of
ValueConversionErrorandInvalidConversionErrorabout formats speaks of the values, which fits an Array as well as a column. - Each member of
Typegives the rules of its type with examples, such as the type of a sum or of a division, and the page ofTypeno longer says that integers wrap around.
Fixed¶
Descriptionrefuses two statistics giving rows of the same name, such as twoShare, withDuplicateStatisticError. A statistic whose settings hold a list no longer raisesTypeError.SquareRoot,Exponential,Logarithm,SineandCosinegiveFLOAT64for integers of any size: they raisedUnsupportedTypeErroronINT8andUINT8values, and gaveFLOAT32onINT16andUINT16values.IntegerOverflowErrornames the type of the Array when a number written before an operator does not fit it, such as1000 * valuesonINT8values, instead ofINT64.- A
ValueMappingwhose new values are all missing keeps the type of the Array: it raisedMissingTypeError. On integers or booleans,UnsupportedMissingErroradvises to convert the Array first.
[0.1.2] - 2026-11-10¶
Changed¶
- The description of the package has changed to "A typed API for arrays, tables and plots, built on numpy, pandas and matplotlib".
- The README presents the library only; the development and release guides are pages of the documentation.
[0.1.1] - 2026-11-10¶
Added¶
- The PyPI page links to the changelog and to the issues, and lists keywords.
Fixed¶
- The source distribution credits the pandas license of the SAS and XPT sample files.
[0.1.0] - 2026-11-10¶
Added¶
numdaplot.__version__gives the version of the installed package.dir(numdaplot)and the completion of notebooks show only the public names and__version__.Array: values of one type in one or several dimensions, created withArray.from_list,Array.from_numpy,Array.filled,Array.from_range,Array.from_spacing,Array.from_date_partsandArray.random; combined with+,-,*,/,//,%,**and, for booleans,&,|,~; read withArray.select,Array.check,Array.take,Array.replace,Array.compute,Array.apply,Array.reshape,Array.transpose,Array.flatten,Array.sort,Array.unique,Array.to_list,Array.to_value,Array.to_numpyandArray.is_equal.Array.from_date_parts(DateParts(year, month, day))builds aDATEArray from three Arrays of whole numbers, such as the day, month and year columns of a file, a date being missing where a part is missing;ValueConversionErrornames a part that is not whole or a year, month and day that form no date.- Array settings:
Shape,Spacing,ArraySorting,Replacement,Equalityand theTypeMatchenum. - Dates: arithmetic between dates, datetimes, durations and numbers on
Array, time functions applied byArray.apply(TimeFunction,DatePart,DatePeriod,DurationIn,ToDuration, with theDatePartUnit,PeriodUnitandDurationUnitenums), date formats and time zones forTable.convert(DateFormatenum,CustomDateFormat,TimeZone,TimeZoneChangeand theTimeZoneModeenum), andTable.column_time_zones. - Plots:
Plot.line,Plot.bar,Plot.scatter,Plot.histogram,Plot.box,Plot.pie,Plot.heatmap,Plot.missing_by_columnandPlot.missing_mapcreate aPlot, shown withPlot.show, saved as a PNG, SVG or PDF image withPlot.saveand turned into a matplotlib figure withPlot.to_matplotlib.Plot.add_line,Plot.add_barandPlot.add_scatterdraw other charts over a Plot, on its axis or on a second axis on the right with theValueAxisenum. - Plots of missing values:
Plot.missing_by_columnwrites the count and the share of the rows above each bar, andPlot.missing_mapkeeps a mark for every missing value of a long Table, with its total in a legend past the axes. PlotStyle(renaming=Renaming(...))shows columns under other names in the legend, the labels of boxes, heatmaps and missing value charts and the default title and axis labels, on every chart of a Plot, without renaming the Table; the columns of an Array are named"0","1"...- Plot titles and axis labels are written by default: the title is the
ylabel by thexlabel, such assales by month, andPlotStylereplaces them or removes them with an empty text. - Plots with many text labels, such as bars, heatmaps and boxes, only create the labels that fit, so they stay fast on long Tables.
Plot.heatmapshows the mean of the cells in each band when they do not fit in the image, with aReadabilityWarning, instead of leaving most of them out.- Figures:
Figureplaces Plots on the cells of aLayoutwithFigure.placeandCell, takes its title and its size from aFigureStyle, and hasshow,saveandto_matplotliblike a Plot. Plot.showandFigure.showemit aDisplayWarningat the line calling them when no window can be opened, such as withouttkinteror on a server, suggesting to installtkinteror to save the image.- Plot settings:
Chart,LineChart,BarChart,ScatterChart,HistogramChart,BoxChart,PieChart,HeatmapChart,MissingChart,BinCount,BinWidth,PlotStyle,Size,CustomColor,ImageOptions, and theColor,LineType,MarkerShape,Orientation,BarLayout,Outliers,Percentages,ColorScale,CellValues,LegendPosition,GridLinesandSizeUnitenums. - Plots: the labels of an axis without enough room are left out, one out of as many as needed from the first one,
with a
ReadabilityWarningwhen they may be texts. - Plot errors and warnings:
ConflictingSettingsError,DuplicateLabelError,EmptyTotalError,InvalidBinWidthError,InvalidChartDataError,InvalidColorCountError,InvalidColorError,InvalidOpacityError,InvalidPointSizeError,InvalidResolutionError,InvalidRotationError,InvalidSizeError,MissingValueError,RefusedSettingError,UnsupportedImageFormatError,IncompatibleChartsError,OccupiedCellError,CellOutOfRangeError,ReadabilityWarningandDisplayWarning. - Date errors:
InvalidConversionError,InvalidDateFormatError,InvalidTimeZoneChangeError,TimeZoneMismatchErrorandUnknownTimeZoneError. Table: named columns of one type each, read withTable.from_csv,Table.from_json,Table.from_excel,Table.from_parquet,Table.from_stata,Table.from_sas,Table.from_xpt,Table.from_pandasandTable.from_arrays; written withTable.to_csv,Table.to_json,Table.to_excel,Table.to_parquetandTable.to_stata; changed withTable.filter,Table.take,Table.choose_columns,Table.rename,Table.convert,Table.add_column,Table.aggregate,Table.describe,Table.sort,Table.drop_duplicatesandTable.drop_missing; read withTable.column,Table.check,Table.count_missing,Table.to_value,Table.to_pandas,Table.is_equal,Table.row_count,Table.column_count,Table.column_names,Table.column_types,Table.preview,Table.preview_missingandprint.- A
Tablewritten at the end of a notebook cell is shown as the HTML table ofTable.preview, with every column and the type of each column under its name; a long Table shows its first and last rows, as its text does. Table.from_csvgives each column the type of all its values, even when pandas reads a long file in blocks: a column mixing numbers and texts keeps every text as written, such as01, without the pandasDtypeWarning.Array,TableandPlot, and the base classesRule,Statistic,MathFunction,TimeFunction,DistributionandChart, refuse their constructor withRefusedOperationError, which names what to use instead. Settings, methods and arithmetic operators check their values against their annotations and raiseInvalidTypeError, which names what they accept.- Settings that work as they are may be omitted:
Array.sort,Table.preview,Table.describe,Table.drop_duplicates,Table.drop_missingandTable.count_missinguse their default settings, and the Plot creation methods andPlot.add_*, exceptPlot.pie, their default chart. Table.convertconverts booleans to numbers, 1 forTrueand 0 forFalse, and numbers to booleans, only 0 and 1 by default or every number but 0 asTruewithBooleanRule.NONZERO_TRUE.- File settings, separate for reading and writing so that each setting only exists where it applies:
CsvReadOptions,CsvWriteOptions,JsonReadOptions,JsonWriteOptions,ExcelReadOptions,ExcelWriteOptions,SasReadOptions,XptReadOptions,ParquetReadOptionsandStataReadOptions. - Every file reading and
Table.from_pandasremove the spaces, tabs and line breaks at the start and the end of each column name, unlessColumnNames.KEPTis given; two names that become the same raiseDuplicateColumnError. CsvReadOptionsandExcelReadOptionstakemissing_texts, the texts read as missing values, which replace the 19 texts pandas reads as missing by default; an Excel column named like one of them, such asNA, keeps its name.- Table settings:
Filter,Condition,Aggregation,Calculation,PivotTable,Description,ColumnChoice,Renaming,NameChange,Conversion,NewColumn,Sorting,SortKey,Deduplication,Preview,MissingCount,MissingDrop,MissingRatio, and theBooleanRule,Encoding,JsonLayout,Conflict,FilterMode,ColumnMatch,ColumnMode,Keep,Side,ShownColumns,MissingMode,RatioComparisonandMeasureenums.Equalitycompares two Tables as well as two Arrays. - Table errors:
ColumnNotFoundError,DuplicateColumnError,DuplicateStatisticError,EmptyListError,FileAccessError,FileExistsError,FileNotFoundError,InvalidColumnNameError,InvalidSeparatorError,InvalidSheetNameError,MissingDependencyErrorandUnsupportedIndexError.FileNotFoundErrorandFileExistsErrorare also the Python errors of the same name, andFileAccessErroris also anOSError. - Distributions:
Distribution,Uniform,Normal,RandomIntegers. - Number brackets:
Conversion(dtype=Type.CATEGORY, format=Brackets(limits, bounds, labels, first, last, others))cuts a number column into categories kept in the order of the brackets, named after the values they hold, such as0 to 9or65 or more, with theBracketEndenum and theInvalidLimitsErrorandInvalidLabelCountErrorerrors;UnmatchedValueErroralso names a value in no bracket. - Value mapping:
Array.apply(ValueMapping(changes=[ValueChange(old_value, new_value)], others=Unmatched.ERROR))replaces listed values by new ones, such as codes by labels, withDuplicateValueErrorfor an old value given twice andUnmatchedValueErrorfor a value without new value;Unmatched.MISSINGmakes those values missing. - Math functions:
MathFunction,SquareRoot,Exponential,Logarithm,Absolute,Round,Sine,Cosine. - Array errors:
DimensionError,EmptyArrayError,IncompatibleTypesError,InvalidBaseError,InvalidCountError,InvalidDeviationError,InvalidPositionError,InvalidSeedError,IntegerOverflowError,InvalidShapeError,IrregularListError,MissingTypeError,NotSingleValueError,OutOfDomainError,RefusedOperationError,ShapeMismatchError,TimeOverflowError,UnsupportedMissingError,ValueConversionError. Type.TIME: times of day from 00:00 to 23:59:59.999999, created fromdatetime.timevalues withArray.from_list, read back asdatetime.timebyto_list,to_numpyandTable.to_pandas, compared by the rules and sorted; durations of any unit read from numpy or pandas stayDURATION.Table.convertreads texts asTIME, asHH:MM,HH:MM:SSorHH:MM:SS.ffffffby default or with aCustomDateFormatof a time only such as"%H%M", takes the local time of day of aDATETIME, and writesTIMEas texts or categories,15:35:00by default.- Calculations on
TIME: two times subtracted give aDURATION, a duration added or subtracted moves a time within its day with aTimeOverflowErrorpast midnight, aDATEplus aTIMEgives aDATETIME,DatePartreads the hour, the minute and the second, andMin,Max,Count,CountDistinctandMostFrequentapply to times. TIMEcolumns are written as texts such as15:35:00in CSV, JSON, Excel and Stata files, read back asTEXT, and as Parquet times read back asTIME.Table.from_excelreads columns of time cells asTIMEand columns of duration cells asDURATION.- Plots place
TIMEcolumns at their hours on the x axis of line, bar and scatter charts, labeledHH:MM, and name heatmap rows, pie slices,color_bygroups and boxgroup_bygroups withHH:MMlabels. - Plots measure
TIMEvalues on an axis labeledHH:MM:yof line and scatter charts, box charts, histograms and Arrays of times of day. A histogram of times has one bin per hour from 00:00 to 24:00 by default, andBinWidthtakes a duration of at most a day for times of day. Table.joinjoins two Tables on key columns (Join,JoinMode,JoinSuffixes,KeyTypes): inner, left, right and outer joins, missing keys never matching, keys of one family by default, an optional check of how many times each key appears (Relation),InvalidSuffixesErrorandJoinRelationError.Typeenum of value types and its conversion to numpy and pandas dtypes, and theLibraryenum read onUnsupportedTypeError.- Rules:
Equal,NotEqual,Greater,GreaterOrEqual,Less,LessOrEqual,Between,IsIn,Contains,IsMissing,IsPresent, with theBoundsandCaseenums. - Statistics:
Sum,Mean,Median,Min,Max,Countwith theCountedMissingenum,CountDistinct,StandardDeviation,Quantile,MostFrequent,MostFrequentCount. - Positions:
Region,Index,Rangeand theAxisenum. - Sort settings:
OrderandMissingPositionenums. - Errors:
NumdaplotError,EmptyRegionError,EmptyTextError,EmptyValuesError,InvalidBoundsError,InvalidFractionError,InvalidTypeError,InvalidStepError,UnsupportedTypeError, and theBroadcastWarningandCalculationWarningwarnings. NumdaplotWarning, the base of every numdaplot warning, filters them all at once with thewarningsmodule.